Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking a table row for one user
Message
De
31/08/2015 17:22:37
Rob Clapworthy
Bespoke Software Systems
Royaume Uni
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01623931
Message ID:
01624051
Vues:
67
This message has been marked as the solution to the initial question of the thread.
Many thanks for all your help guys

Went with the following option 3 for those that are interested:-
DECLARE @newseq AS float   UPDATE NextId SET @newseq = iNextNo = iNextNo + 1 WHERE cdbfname = 'JOBNO'          SELECT @newseq
The command above increases my field and puts the result into a local variable, I can then query the variable Voila

The main point here being that the update increase my field value and puts the result in a global variable in one move so to speak. Sweet.

This works fine for me :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform