Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Corrupted primary key
Message
 
 
To
09/07/1998 02:21:47
Addie Chenjin
Sd Software Co.
Tianjin, China
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115591
Message ID:
00115594
Views:
14
>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."
Previous
Reply
Map
View

Click here to load this message in the networking platform