Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 get locked row

Author  Topic 

laailalalaa
Yak Posting Veteran

57 Posts

Posted - 2010-06-09 : 13:29:45
hello,

i acquire a lock (say exclusive) on a row in a table. then i execute sp_lock or i query sys.dm_tran_locks.
both methods give me the id of the table on which the IX lock is placed; also both the procedure and the view identify the (row) resource being locked as a hexadecimal number.
based on that hexadec number, is there any way i can retrieve the values in the row being locked (or at least the PK value)?

thanks
   

- Advertisement -