Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a better way of selecting information for a dat
Message
From
26/04/2007 16:37:07
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01219598
Message ID:
01220261
Views:
25
Sorry Sergey I missed it.

John


>See Message #1219621 in this thread.
>
>>Itzik Ben-Gan outlined three methods in the Feb. 2007 issue of SQL Server magazine. His preferred method is this:
>>
>>
>>
>>SELECT DATEADD(day,DATEDIFF(day,'19000101',GetDate()),'19000101')
>>
>>
>>
>>While it was not quite the fastest it was up there with another solution that is not in this thread. This solution he said was twice as fast as the others on 1,000,000 iterations.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform