Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Corrupted primary key
Message
 
À
09/07/1998 02:21:47
Addie Chenjin
Sd Software Co.
Tianjin, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115591
Message ID:
00115594
Vues:
13
>hello all
>
>i found some records that had the same primary key ID in the table.
>any one can tell me why it happened and how to prevent it?
>

Assignig PRIMARY keys on records is more on end-user responsibility provided that the system have enough validations when inserting new records. What we do is we make separate form which pop-ups to input the ID intended for PRIMARY key whenever the user add records. Upon inputting the ID on the popup window, it seeks the string on the table referencing the PRIMARY key. If FOUND, insertion should be cancelled otherwise, do the necessary insertion. Lot of approaches actually, depending on your taste HOW...
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform