<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER – Quickest Way to Identify Blocking Query and Resolution – Dirty Solution</title>
	<atom:link href="http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Appuraj</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-461111</link>
		<dc:creator><![CDATA[Appuraj]]></dc:creator>
		<pubDate>Mon, 22 Apr 2013 01:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-461111</guid>
		<description><![CDATA[But deepkt if any job running for above spid56 then if u kill means
that job will fail and create problems..so before killing any process just look at what it is doing and decide which one to kill either 52 or 56..

thanks]]></description>
		<content:encoded><![CDATA[<p>But deepkt if any job running for above spid56 then if u kill means<br />
that job will fail and create problems..so before killing any process just look at what it is doing and decide which one to kill either 52 or 56..</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siva</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-416681</link>
		<dc:creator><![CDATA[Siva]]></dc:creator>
		<pubDate>Sat, 02 Feb 2013 09:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-416681</guid>
		<description><![CDATA[Hi Pinal,
             In our organization we are running an ERP Software. This software was developed using ASP.NET as Front End and SQL Server 2005 as Back end... When more number of users accessing at the same time means we are facing slowness in Execution... Some times SQL server gets Hang... What we have to do to overcome this problem... Pls do the needful]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
             In our organization we are running an ERP Software. This software was developed using ASP.NET as Front End and SQL Server 2005 as Back end&#8230; When more number of users accessing at the same time means we are facing slowness in Execution&#8230; Some times SQL server gets Hang&#8230; What we have to do to overcome this problem&#8230; Pls do the needful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gowtham</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-355780</link>
		<dc:creator><![CDATA[Gowtham]]></dc:creator>
		<pubDate>Thu, 04 Oct 2012 07:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-355780</guid>
		<description><![CDATA[Please let me know the what are all the tables need to be checked during the long execution of SQL jobs]]></description>
		<content:encoded><![CDATA[<p>Please let me know the what are all the tables need to be checked during the long execution of SQL jobs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gowtham</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-355779</link>
		<dc:creator><![CDATA[Gowtham]]></dc:creator>
		<pubDate>Thu, 04 Oct 2012 07:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-355779</guid>
		<description><![CDATA[Hi Pinal,

Good Morning !!!

i am supporting SQL server 2005 .There are around 100 SQL jobs which used to be scheduled to run at its time on daily, weekly, weekday and Monthly basis. 

But, i would like to bring to your notice that there are some SQL jobs which are taking more time to execute than expected.

we would like to fix this issue asap to ensure that all the SQL jobs will be running on its schedule timings without long execution.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Good Morning !!!</p>
<p>i am supporting SQL server 2005 .There are around 100 SQL jobs which used to be scheduled to run at its time on daily, weekly, weekday and Monthly basis. </p>
<p>But, i would like to bring to your notice that there are some SQL jobs which are taking more time to execute than expected.</p>
<p>we would like to fix this issue asap to ensure that all the SQL jobs will be running on its schedule timings without long execution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik Kulkarni</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-331252</link>
		<dc:creator><![CDATA[Karthik Kulkarni]]></dc:creator>
		<pubDate>Thu, 16 Aug 2012 06:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-331252</guid>
		<description><![CDATA[Hi Pinal,

             The above query for identifying blocking is working but this information is dynamic, but what if we are getting block somewhere around midnight and get a mail in the morning saying there was a blocking at midnight please check.
How can we record blocking history is my question.

Thanks
Karthik]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>             The above query for identifying blocking is working but this information is dynamic, but what if we are getting block somewhere around midnight and get a mail in the morning saying there was a blocking at midnight please check.<br />
How can we record blocking history is my question.</p>
<p>Thanks<br />
Karthik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christos</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-316223</link>
		<dc:creator><![CDATA[Christos]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 07:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-316223</guid>
		<description><![CDATA[Can you tell; us how to reproduce it and test it?]]></description>
		<content:encoded><![CDATA[<p>Can you tell; us how to reproduce it and test it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Mishra</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-305515</link>
		<dc:creator><![CDATA[Rupesh Mishra]]></dc:creator>
		<pubDate>Mon, 25 Jun 2012 08:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-305515</guid>
		<description><![CDATA[Try this...
sp_who2 active&gt;&gt;&gt; will result with the spids, and other details and has a column showing the blocking process if any. 
then use DBCC inputbuffer ()
if not a dml (to prevent data inconsistency, we should avoid killing a insert, update or delete), use kill
This will kill the blocking process and the resource/object will be realeased hence resolving the blocking]]></description>
		<content:encoded><![CDATA[<p>Try this&#8230;<br />
sp_who2 active&gt;&gt;&gt; will result with the spids, and other details and has a column showing the blocking process if any.<br />
then use DBCC inputbuffer ()<br />
if not a dml (to prevent data inconsistency, we should avoid killing a insert, update or delete), use kill<br />
This will kill the blocking process and the resource/object will be realeased hence resolving the blocking</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirmal</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-283959</link>
		<dc:creator><![CDATA[Nirmal]]></dc:creator>
		<pubDate>Fri, 11 May 2012 20:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-283959</guid>
		<description><![CDATA[This is awesome! Thank you!]]></description>
		<content:encoded><![CDATA[<p>This is awesome! Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jhobany Peña</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-274506</link>
		<dc:creator><![CDATA[Jhobany Peña]]></dc:creator>
		<pubDate>Mon, 09 Apr 2012 21:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-274506</guid>
		<description><![CDATA[Wow.... thank&#039;s!!!!]]></description>
		<content:encoded><![CDATA[<p>Wow&#8230;. thank&#8217;s!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepkt</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-267819</link>
		<dc:creator><![CDATA[deepkt]]></dc:creator>
		<pubDate>Mon, 26 Mar 2012 11:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-267819</guid>
		<description><![CDATA[Hi,
I am using following method for finding the blocked processes.

SELECT spid FROM master..SYSPROCESSES WHERE blocked0 
Let&#039;s say 56 is the spid blocking

DBCC INPUTBUFFER(56) -- Will give you the Event Info

KILL 56]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using following method for finding the blocked processes.</p>
<p>SELECT spid FROM master..SYSPROCESSES WHERE blocked0<br />
Let&#8217;s say 56 is the spid blocking</p>
<p>DBCC INPUTBUFFER(56) &#8212; Will give you the Event Info</p>
<p>KILL 56</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-265607</link>
		<dc:creator><![CDATA[Ram]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 09:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-265607</guid>
		<description><![CDATA[This will gives us the full text (Eg,. For an SP it will show us the full code) is there any way to get the only statement causing blocking along with the SP name?...]]></description>
		<content:encoded><![CDATA[<p>This will gives us the full text (Eg,. For an SP it will show us the full code) is there any way to get the only statement causing blocking along with the SP name?&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin Menon</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-178786</link>
		<dc:creator><![CDATA[Ashwin Menon]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 12:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-178786</guid>
		<description><![CDATA[Hi Pinal,

I was testing your query and found that it didnt give me the results that I was expecting.
To reproduce, I start a transaction and did an insert. Now in another query window i go and do a select on the same table.
Now if I run the query I am not able to see any results,
Due to the fact that in sys.dm_os_waiting_tasks we dont see the spid which is actually blocking. It is the same case even if you do query sys.dm_exec_requests.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I was testing your query and found that it didnt give me the results that I was expecting.<br />
To reproduce, I start a transaction and did an insert. Now in another query window i go and do a select on the same table.<br />
Now if I run the query I am not able to see any results,<br />
Due to the fact that in sys.dm_os_waiting_tasks we dont see the spid which is actually blocking. It is the same case even if you do query sys.dm_exec_requests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garry</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-148770</link>
		<dc:creator><![CDATA[Garry]]></dc:creator>
		<pubDate>Sat, 16 Jul 2011 19:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-148770</guid>
		<description><![CDATA[Thanks a bunch, that saved me a fair bit of time. How many years have you spent learning Microsoft SQL? You so are an internet high-and-mighty at it!

Thanks again, Garry.]]></description>
		<content:encoded><![CDATA[<p>Thanks a bunch, that saved me a fair bit of time. How many years have you spent learning Microsoft SQL? You so are an internet high-and-mighty at it!</p>
<p>Thanks again, Garry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maddy</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-136749</link>
		<dc:creator><![CDATA[Maddy]]></dc:creator>
		<pubDate>Thu, 26 May 2011 06:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-136749</guid>
		<description><![CDATA[i get the session blocking because one Procedure  is blocking to other Procedure.
 After looking into the procedures we found that the select query in both the procedures uses the same function and the joins are on same tables in both procedures. 
These two procedures were executing at same time and hence the blocking issue occurred.
Can u tell me the possible solution on this issue ?]]></description>
		<content:encoded><![CDATA[<p>i get the session blocking because one Procedure  is blocking to other Procedure.<br />
 After looking into the procedures we found that the select query in both the procedures uses the same function and the joins are on same tables in both procedures.<br />
These two procedures were executing at same time and hence the blocking issue occurred.<br />
Can u tell me the possible solution on this issue ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-124423</link>
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 22 Mar 2011 19:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-124423</guid>
		<description><![CDATA[If this is once a blue moon blocking, you might kill it and call victory. However, I suggest readers first understand the implications.

1) If this is a web app, when you kill it, the user on the other end of the world might re-submit again after seeing execution unsuccessful. Blocking occurs again. You are tracing tail.

2) If the code has fundamental issues, you need to identify the code issue and point out to developers to fix. Kill it in reaal-time won&#039;t do anything good in the long-run.

Please visit my SQLSaturday#57 presentation which covers blocking.

If you are killing the same job, same code execution, you better stop and find out what is wrong with that code.]]></description>
		<content:encoded><![CDATA[<p>If this is once a blue moon blocking, you might kill it and call victory. However, I suggest readers first understand the implications.</p>
<p>1) If this is a web app, when you kill it, the user on the other end of the world might re-submit again after seeing execution unsuccessful. Blocking occurs again. You are tracing tail.</p>
<p>2) If the code has fundamental issues, you need to identify the code issue and point out to developers to fix. Kill it in reaal-time won&#8217;t do anything good in the long-run.</p>
<p>Please visit my SQLSaturday#57 presentation which covers blocking.</p>
<p>If you are killing the same job, same code execution, you better stop and find out what is wrong with that code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dant</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-91898</link>
		<dc:creator><![CDATA[Dant]]></dc:creator>
		<pubDate>Sat, 09 Oct 2010 18:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-91898</guid>
		<description><![CDATA[@bandit

check the compatibility on the database, should be 90 or higher]]></description>
		<content:encoded><![CDATA[<p>@bandit</p>
<p>check the compatibility on the database, should be 90 or higher</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EstebanD</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-91739</link>
		<dc:creator><![CDATA[EstebanD]]></dc:creator>
		<pubDate>Thu, 07 Oct 2010 15:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-91739</guid>
		<description><![CDATA[Thanks.

Not sure if I got this from you too, but our dirty solution for the same problem is finding which connection has been running for long time. 

Probably this only works well with small, simple and low traffic implementations.

SELECT sqltext.TEXT, 
req.session_id, 
req.status, 
req.command, 
req.cpu_time, 
req.total_elapsed_time 
FROM sys.dm_exec_requests req 
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext]]></description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>Not sure if I got this from you too, but our dirty solution for the same problem is finding which connection has been running for long time. </p>
<p>Probably this only works well with small, simple and low traffic implementations.</p>
<p>SELECT sqltext.TEXT,<br />
req.session_id,<br />
req.status,<br />
req.command,<br />
req.cpu_time,<br />
req.total_elapsed_time<br />
FROM sys.dm_exec_requests req<br />
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bandit</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-91537</link>
		<dc:creator><![CDATA[bandit]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 18:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-91537</guid>
		<description><![CDATA[I&#039;m trying to run the query on SQL Server 2008 and it is breakingon the CROSS APPLY line in the predicate - not sure what this is]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to run the query on SQL Server 2008 and it is breakingon the CROSS APPLY line in the predicate &#8211; not sure what this is</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim C</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-91489</link>
		<dc:creator><![CDATA[Tim C]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 14:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-91489</guid>
		<description><![CDATA[I am confused, would not DBCC OPENTRAN get him the same results?]]></description>
		<content:encoded><![CDATA[<p>I am confused, would not DBCC OPENTRAN get him the same results?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amns</title>
		<link>http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/#comment-91454</link>
		<dc:creator><![CDATA[amns]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 09:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10343#comment-91454</guid>
		<description><![CDATA[Pinal, thanks for this helpfull post.]]></description>
		<content:encoded><![CDATA[<p>Pinal, thanks for this helpfull post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
