Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to generate PK on SQL table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00459598
Message ID:
00459881
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform