If I have the two above-mentioned data types in a Join, I assume the query engine must Cast one to the other, but is this a major performance hit? Is it maybe less a hit because the data-types are 'somewhat related'? Or is it just as big a hit as, say, casting a varchar to an Int or vice-versa? I'm not doing an explicit cast, I'm just joining and letting sql-server do the cast.
Both table's dates in these fields have no time value stored--it's date only. But I have dates that fall outside the value-range of smalldatetime so I need to use the larger datetime for that, and the other table was built with smalldatetime from the start--it's date-only but it's values never fall outside the range.
Would it be worth just converting the other table's smalldatetime to datetime? Or is the performance hit small enough that I can just leave it?
Thanks for any info on this...
-Jim
Both table's dates in these fields have no time value stored--it's date only. But I have dates that fall outside the value-range of smalldatetime so I need to use the larger datetime for that, and the other table was built with smalldatetime from the start--it's date-only but it's values never fall outside the range.
Would it be worth just converting the other table's smalldatetime to datetime? Or is the performance hit small enough that I can just leave it?
Thanks for any info on this...
-Jim