Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking a table row for one user
Message
From
31/08/2015 17:22:37
Rob Clapworthy
Bespoke Software Systems
United Kingdom
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01623931
Message ID:
01624051
Views:
65
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 :)
Previous
Reply
Map
View

Click here to load this message in the networking platform