Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on candidate key
Message
De
28/04/2003 12:52:50
 
 
À
28/04/2003 10:39:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00781792
Message ID:
00782326
Vues:
9
>How many fields are in this candidate key? Are all of the fields *required* to have something in them once the record finally hits the table? When does this occur in relation to the initial INSERT with blank values..is it a minute or two later?

Two fields were present in the candidate key. All fields will have a value once the record is created. But, no table level validation has been defined. All that is inside the code. This occurs immediately. When I do the INSERT INTO, while the fields are being added (from the same command), for a short time, they will be blank. So, when another user was doing the same, this was causing two blank fields, thus a uniquess of candidate key violation was present. This is why I dropped that approach. It also reminded me why I wanted to stay away from candidate key because of the potential violation that can occur. See the other thread with the FLOCK() solution which has worked so far. That seems to be the way to go.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform