SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName
FROM sys.dm_tran_locks
WHERE resource_type='OBJECT '
kill
FROM sys.dm_tran_locks
WHERE resource_type='OBJECT '
kill
轉載於:https://www.cnblogs.com/sandy_liao/archive/2012/03/22/2411508.html