Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use the server date?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00819947
Message ID:
00819986
Vues:
19
>We have a field in all tables called dLastChange which store the DateTime of the last change to the record. Currently I use this code:
>
>
>dataRow["dLastChange"] = DateTime.Now;
>
>
>How can I use the server clock instead of the client clock? How do I use the "getdate()" function of the SQL Server when I save a record with MM.NET?

If you set the field to allow null in SQL Server and then use GetDate() you won't need to add the row in MM.NET.
Rex A. Willis MCSD
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform