Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server DateTime in SQL Select
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01463837
Message ID:
01463844
Views:
59
>Btw, just occurred to me to ask. Is the syntax of using >= and < (as in your example) faster than using Between?
>

It is not faster, but this is the correct syntax when dealing with dates if you want to include time portion for the second date.

Take a look at these two links

The ultimate guide to the datetime datatypes
Bad habits to kick : mis-handling date / range queries
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform