Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More on candidate key
Message
From
28/04/2003 12:52:50
 
 
To
28/04/2003 10:39:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00781792
Message ID:
00782326
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform