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.]