Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubles with candidate keys
Message
 
To
27/09/2000 09:42:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00419595
Message ID:
00421449
Views:
23
>>>I'm working with VFP6 SP3. In my DBC I have some tables defined with a candidate key. Since one month I have troubles with this candidate keys. The users of my application can save two records with the same candidate key. They are working on Win95 WS and an NT Server.
>>>How can I solve this problem?
>>>
>>>Thanks
>>
>>I have not experienced this behavior. Is it possible your indexes on those tables have become corrupted?
>
>I don't think so. We are working with Stonefield Databases Toolkit.
>We have made a database repair and the problem is still during.

What is the format of the candidate key? A character string? Can you actually see two records in the table with the same key? What happens if you issue the following SQL command:

SELECT CandidateKey, COUNT(*) ;
FROM TableName ;
GROUP BY CandidateKey ;
HAVING COUNT( CandidateKey ) > 1
Chris McCandless
Red Sky Software
Previous
Reply
Map
View

Click here to load this message in the networking platform