Groups | Blog | Home
all groups > sql server (microsoft) > october 2004 >

sql server (microsoft) : locking


dvsbis
10/22/2004 2:21:22 PM
hi all....i need to write a stored procedure to
generate a key colum id/code/number etc
here is wat i need to do...
lock the record so it can't be updated until i finish
generating a new number
lastnum is in the column, need to increment this number
than write it back again before anyother users/applications can read it

thanks for you help
dave

mmmc_reptail NO[at]SPAM hotmail.com
11/1/2004 6:37:22 AM
[quoted text, click to view]

Hi,

Take a look at here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_con_7a_1hf7.asp

You might find the help you need from there.
Or look up the same article from BOL.

----
AddThis Social Bookmark Button