Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary Key Generation Advice
Message
From
24/08/2001 18:21:20
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00548941
Message ID:
00549039
Views:
20
>I'm in the process of developing a multiuser application and am looking for some advice on primary key generation.. In single apps I used max + 1 for the primary key which works fine in a single user environment, but could cause problems in a multiuser environment.. I had the idea of a table which holds the next primary key for all of the tables.. When you want a new key you exclusivly lock the table, get the key, update the table and the release the key table. Any advice on how other people generate unique primary keys would be appriciated...
>
> Thanks


I was going to suggest you look at the article on my web site, but I see that Sergey and Nick already did. *g*
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform