Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get next number from SQL Server
Message
De
20/11/2006 09:04:41
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Get next number from SQL Server
Divers
Thread ID:
01171148
Message ID:
01171148
Vues:
194
In our order entry application, when an order is created, the next available order number is taken from a field in a table. Then, the field is incremented by 1 for the next time this routine is called.

We want to use a SQL Server table within our .Net application to manage the next number field. However, how can we lock the table in our routine, while it's getting and incrementing the field, so that no other user can access the table. Then unlock the table when done.

We want to avoid two or more users getting the same next number order number from the table's field.

How can this be done?

Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform