Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime comparison
Message
 
À
03/04/2009 01:16:10
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01392907
Message ID:
01392911
Vues:
36
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform