Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness of SYS(2015)
Message
 
 
À
23/06/2007 20:38:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01235219
Message ID:
01235222
Vues:
15
The value returned by SYS(2015) is based on the computer time. As result, the same value could be generated by multiple PCs.

>
>To generate a unique record id value, in lieu of using either:
>
>1. the AUTOINC field type
>2. using a table that houses a LastNumber field and have a GetLastNumber() function to lock and return value.
>
>Will using SYS(2015) do the job? I mean, is its uniqueness 'guaranteed' if its being invoked by 100 or more workstations simultaneously?
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform