死锁问题语句执行
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