十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
-- show blocking SPIDS and SQL SELECT Blocked.Session_ID AS Blocked_Session_ID , Blocked_SQL.text AS Blocked_SQL , waits.wait_type AS Blocked_Resource , Blocking.Session_ID AS Blocking_Session_ID , Blocking_SQL.text AS Blocking_SQL , GETDATE() FROM sys.dm_exec_connections AS Blocking INNER JOIN sys.dm_exec_requests AS Blocked ON Blocked.Blocking_Session_ID = Blocking.Session_ID CROSS APPLY ( SELECT * FROM sys.dm_exec_sql_text(Blocking.most_recent_sql_handle) ) AS Blocking_SQL CROSS APPLY ( SELECT * FROM sys.dm_exec_sql_text(Blocked.sql_handle) ) AS Blocked_SQL INNER JOIN sys.dm_os_waiting_tasks AS waits ON waits.Session_ID = Blocked.Session_ID
创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站设计、成都网站制作、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的中卫网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!
Run the above query, it can show blocking SPIDS and SQL for you.