Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DATETIME() problem.
Message
De
07/08/1998 15:13:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/08/1998 14:53:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00124841
Message ID:
00124904
Vues:
20
>
>Thanks! But I have a question:
>
>I have a table field 'Timestamp', data type is datetime.
>
>I wrote a procedure which will check the value of 'Timestamp' before saving an old record. If current date and time are newer than 'Timestamp', it will replace the record.
>
>'A' workstation runs the procedure at 1:00pm, and 'B' workstation runs it at
>1:01pm. Normally, the value of 'Timestamp' is today and 1:01pm.
>
>But unfortunately, they got the same date, except time. 'A' workstation got 1:00pm, 'B' workstaion got 12:59pm. Although 'B' ran the procedure later, it cannot replace the record forever.
>
>Do I get the current date and time from the server? If yes, how to get them?
>
Instead of timestamp you could use an integer value and increment it. You could get the server datetime with winapi but I don't know how to do.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform