Masterminds dotnet
Wednesday, 3 June 2015
To find locked tables in sql server 2008
Using below query you can find locked tables in sql server 2008
select
object_name(p.object_id) as TableName,
resource_type, resource_description
from
sys.dm_tran_locks l
join sys.partitions p on l.resource_associated_entity_id = p.hobt_id
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment