Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatically insert the server's datetime
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00513068
Message ID:
00513168
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
Keep in mind, however, that will only take care of inserted records. To update existing records, simply place the GetDate() function in your update command for your datetime field.

i.e.: SQLExec(lnHandle, "Update TableName Set DateTimeField=GetDate() Where Condition")

That should take care of the updates for you.

HTH

>Hi!
>
>Specify the GetDate() funtion as a default value of the field. In the Enterprise manager you can do this by using the "Default Value" field at the bottom pane of the table designer.
>
>HTH.
>
>>Hello, All
>>
>>I've runned into one problem:
>>
>>I've defined a table with a DateTime column in MSDE. I want every update of a record in that table to update automatically the DateTime field, using the server's current date and time.
>>
>>I wonder if there is a way to specify this (maybe default value, or something like this).
>>
>>Can anyone help me?
>>
>>Thank you
Travis Vandersypen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform