Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Next Number generator
Message
From
23/07/2001 20:33:26
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00533898
Message ID:
00534192
Views:
42
There's a cleaner way. You can use UPDATE to increment and fetch the value without have to explicitly manage the locks:

UPDATE id
SET @nnid = idval, idval = idval + 1
WHERE keyname = @tcKeyWord

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform