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
 SQL Server Administration (2005)
 Who is holding locks?

Author  Topic 

lebedev
Posting Yak Master

126 Posts

Posted - 2009-10-05 : 21:35:26
In SQL Server 2005 how can I find out which process is holding locks on records of a specific table? Ideally I would like to know the exact SQL statement that acquired the lock.

Thanks,

Alec

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-10-06 : 00:46:18
You can use sp_lock.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -