Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate PK nos. allocated
Message
From
27/09/2006 06:58:55
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
25/09/2006 10:51:36
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01156783
Message ID:
01157435
Views:
25
Hi James, thanks for the reply.

>You need to wrap the process into a transaction and then update the counter first and get the PK value and then commit the update. I prefer to do this with a stored procedure that way you only have one call to the database to get the new value.

Looks like one of these methods is the way to go. I have code suggestions for both, which I will be trying-out soon.

Regards,
Alan
Previous
Reply
Map
View

Click here to load this message in the networking platform