sqlserver查死锁

SELECT
request_session_id spid,
OBJECT_NAME(
resource_associated_entity_id
) tableName
FROM
sys.dm_tran_locks
WHERE
resource_type = 'OBJECT'

posted @ 2020-09-05 17:51  15688611895  阅读(127)  评论(0)    收藏  举报