重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
-- 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.