January 19, 2005 at 10:20 am
haha! So true.... However i wonder if they designed TSQL from many different directions and it didnt line up when they met in the middle....
January 19, 2005 at 10:38 am
We use
DATEADD(d,DATEDIFF(d,0,T.ApptDate),0) to get the date with time set to midnight. We have found that CAST and CONVERT are way too slow when applied to large subsets of data.
Terri
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
January 19, 2005 at 11:04 am
did you try cast to float/int?
Casting to strings, calling convert would be slow.
I bet CAST(CAST(SomeDate AS FLOAT) AS INT) is faster than using DateAdd...
- John
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy