Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting error on primary key..
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00347282
Message ID:
00347285
Views:
20
Lisa,

>we have a table that has the id field (cid) set as primary. The primary key generating code starts with "000001" and increments thru "000009" before changing to "00000A". When it has incremented to "00000Z", we will get the "Uniquiness of CID is violated", but the primary key value that it is trying to save is "00000a".

Are you sure that "00000a" is the value being saved, or are you assuming it is? IOW, you have tested the value to confirm it is correct?

What is the index expression for the primary index?

Do you have a deleted record in the table with the value "00000a" already there?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform