Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a better way of selecting information for a dat
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01219598
Message ID:
01219621
Views:
19
>Thanks for your reply Sergey. As always I value your response a lot. I find your syntaxt more difficult to read than my method, but the big question is: Is your way better, i.e., faster than my method?

IMO, it's more readable than yours. Also it has better chances to get optimized and be faster. Small correction though
SET @DateOnly = DATEADD(dd, DATEDIFF(dd, 0, @DateField), 0)
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform