Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Way to Retrieve DBServer Date/Time
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01449231
Message ID:
01449232
Vues:
50
This message has been marked as the solution to the initial question of the thread.
>What is the best way to retrieve the db server's date/time?
>
>I'm sure there's a fancier/better way to do it than:
>
>
>select getdate() from sometable where pk=knowngoodpk
>
Simple select getdate() as ServerTime should work too. - no need to use a table.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform