{"id":370,"date":"2024-07-26T10:01:35","date_gmt":"2024-07-26T10:01:35","guid":{"rendered":"https:\/\/humtechno.com\/intro\/?p=370"},"modified":"2024-07-26T10:04:23","modified_gmt":"2024-07-26T10:04:23","slug":"how-to-check-session-blocking-in-sql-server","status":"publish","type":"post","link":"https:\/\/humtechno.com\/intro\/2024\/07\/26\/how-to-check-session-blocking-in-sql-server\/","title":{"rendered":"How to Check Session Blocking in SQL SERVER"},"content":{"rendered":"\n\n\n\n<p>Execute in SQL Server Management Studio<\/p>\n\n<p>sp_who2<br><strong>Note<\/strong>  : check blk column for session id<br>SELECT * FROM sys.dm_exec_requests WHERE blocking_session_id &lt;> 0;<br>SELECT session_id, wait_duration_ms, wait_type, blocking_session_id FROM sys.dm_os_waiting_tasks WHERE blocking_session_id &lt;> 0;<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":372,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[4],"tags":[37,36],"class_list":["post-370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql-server","tag-session-blocking","tag-sql-server-session-blocking"],"_links":{"self":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":5,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/posts\/370\/revisions\/376"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/media\/372"}],"wp:attachment":[{"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humtechno.com\/intro\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}