Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto ID Field
Message
De
22/04/1998 12:09:36
 
 
À
22/04/1998 03:20:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00093850
Message ID:
00094039
Vues:
45
I never get a duplicate ID, because I lock the system table record while I get the next one. Even in the event of an update failure to the system table, they will just get an error when adding the record with the duplicate ID. And then I have an update routine which determines the next ID for all the tables. So if they get an error that way, they will just have to run the update procedure..

I really worry you will get a duplicate key problem pretty regularly if you have many users doing the same thing, like adding transactions. Sure, a milisecond isn't long, but it's long enough.

Adam
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform