Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime comparison
Message
 
To
03/04/2009 01:16:10
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01392907
Message ID:
01392911
Views:
37
>Hi,
>May I know if any explicit conversion required when compare datetime data via ADO.NET (sqlParameters) so that it always able to compare correctly regardless what regional setting of workstation and server?
>
>Thank you

I don't know where you want to compare these dates on your frontend or in SQL Server.
But because you posted the question in SQL Server forum I assume you want to compare datetime there.
So the answer is NO, there is no need to convert them to anything when you compare them.
No matter what are Regional settings the result will be correct.
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