Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uniqueness of 'primary_key' is violated.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00939529
Message ID:
00944769
Views:
26
Any time a record is added to the database is should have a primary key. This value should be created either when the record is initially created, or on the first save. Additionally, a primary key IMHO should never be re-used. That is unless there is a business reason for doing so. Actually when trying to track something, using the same unique id for two different things at different times can be hard to track over the long term.

>In addition to what Denis said you might want to look into the autoinc field type (if you have vfp7 or8). I have nothing but good things to say about autoinc.
>
>Einar
>>Hi Denis,
>>We have several users using the same program simultaniously and need to create new customers. It is not practical for me to create a customer record manually everytime they need it. I want to get it done thru the customer creation program itself.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Previous
Reply
Map
View

Click here to load this message in the networking platform