Find Resource Currently Involved in Blocking
-
Posted on May 31, 2009 by Derek Dieter
-
0
[cc lang=”sql”]
SELECT DISTINCT
objname = object_name(p.object_id)
FROM sys.partitions p
JOIN sys.dm_tran_locks t1
ON p.hobt_id = t1.resource_associated_entity_id
[/cc]
Post a comment
- Comments (RSS)
- Trackback
- Permalink