Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is one way more efficient than the other
Message
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01333475
Message ID:
01333477
Views:
9
What is the execution plan?
I think both are equal for SQL Server so no matter you will use the execution plan should be the same.
One thing:
If you store time potion in that datetime field and you want date between 01/01/2008 and 01/31/2008 you have to use:
SELECT ...
       FROM ...
WHERE DateTimeField >= '20080101' AND --- 01 Jan 2008
      DateTimeField <  '20080201'     --- 02 Feb 2008
Just because 01/31/2008 01:03:00.111 is bigger than just 01/31/2008.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform