Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining a higher precision in timestamp
Message
 
 
À
21/03/2014 11:38:33
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01597037
Message ID:
01597047
Vues:
38
This message has been marked as a message which has helped to the initial question of the thread.
>>As Naomi just said, there's DateTime2....also, you want to populate it using the function SYSDATETIME()
>
>What would be the equivalent of SYSDATETIME() in VB.NET? For now, I use Date.Now.

DateTime.Now doesn't seem to be precise enough :(

http://msdn.microsoft.com/en-us/library/system.datetime(v=vs.110).aspx

See also

http://stackoverflow.com/questions/7119021/sql-server-2008-stored-procedure-with-datetime2


Looks like we need to search for more precise .NET DateTime class.

>
>>I believe DateTime2 goes down to the nanoseconds.
>
>Yes, that is correct.
>
>>Here's a very good article that covers it:
>>http://blog.sqlauthority.com/2010/06/11/sql-server-difference-between-datetime-and-datetime2/
>
>Thanks
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform