Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining a higher precision in timestamp
Message
De
21/03/2014 12:17:30
 
 
À
21/03/2014 12:00:54
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:
01597052
Vues:
39
>I think you should consider using default values in the table DDL.
>
>For instance...
>
>
>create table test  (firstname varchar(10), lastupdatetime datetime2 default sysdatetime() )
>
>
>Most DBAs would agree these should be set in the database, not in the application layer.
>
>(And I just noticed that Mike Yearwood replied the same way....and Mike is correct 99.9999999999% of the time) :)

All the values are controlled by the application. If VB.NET does not currently support that type by the use of the SQLClient, I will have to wait before its usage. But, I would assume this is probably already supported by now. I just need to find some times to get into that by next week.

I had this situation today that I inserted a bunch of records with the same millisecond. As I order a list using by most recent, it appeared not exactly in the order I expected. This was a first of course. So, this is why, whereas applicable, I would focus on enhancing in that direction.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform