Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to generate PK on SQL table
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00459598
Message ID:
00459881
Views:
21
Doug:

What I do is setup a SP on SQL Server that servers as a counter. When the client app starts up, it places a call to this SP and returns a unique number. Subsequent keys are the generated on the client by concatenting a key generated locally with the key recieved on startup. This method aviods a lot unecessary round trips to the server.

Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform