死锁问题语句执行

select
request_session_id spid,
OBJECT_NAME(resource_associated_entity_id) tableName
from
sys.dm_tran_locks
where
resource_type='OBJECT'

--kill 80


SELECT blocking_session_id, wait_duration_ms, session_id FROM sys.dm_os_waiting_tasks

SELECT * FROM Orders WITH (NOLOCK) WHERE OrderID=10248

posted on 2017-12-14 10:45  四海骄阳  阅读(129)  评论(0编辑  收藏  举报

导航