<?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 &#8211; Quickest Way to &#8211; Kill All Threads &#8211; Kill All User Session &#8211; Kill All Processes</title>
	<atom:link href="http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 26 May 2013 03:27:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #015 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-419681</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #015 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 09 Feb 2013 01:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-419681</guid>
		<description><![CDATA[[...] Quickest Way to – Kill All Threads – Kill All User Session – Kill All Processes More than a year ago, I wrote how to kill all the processes running in SQL Server. Just a day ago, I found the quickest way to kill the processes of SQL Server. While searching online I found very similar methods to my previous method everywhere. Today in this article, I will write the quickest way to achieve the same goal. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Quickest Way to – Kill All Threads – Kill All User Session – Kill All Processes More than a year ago, I wrote how to kill all the processes running in SQL Server. Just a day ago, I found the quickest way to kill the processes of SQL Server. While searching online I found very similar methods to my previous method everywhere. Today in this article, I will write the quickest way to achieve the same goal. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajdeep</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-364231</link>
		<dc:creator><![CDATA[Rajdeep]]></dc:creator>
		<pubDate>Thu, 25 Oct 2012 10:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-364231</guid>
		<description><![CDATA[Hey Pinal,

Your syntax for killing users was Mind blowing, I had tried this shortcut, Its damn good, Thanks so much.]]></description>
		<content:encoded><![CDATA[<p>Hey Pinal,</p>
<p>Your syntax for killing users was Mind blowing, I had tried this shortcut, Its damn good, Thanks so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jagannath patro</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-326364</link>
		<dc:creator><![CDATA[jagannath patro]]></dc:creator>
		<pubDate>Tue, 07 Aug 2012 07:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-326364</guid>
		<description><![CDATA[i want to kill a session for a particular user after 30 minutes of his login to be done automatically. i.e connection should be timed out after 30 minutes of his login time. how to do it?]]></description>
		<content:encoded><![CDATA[<p>i want to kill a session for a particular user after 30 minutes of his login to be done automatically. i.e connection should be timed out after 30 minutes of his login time. how to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-287267</link>
		<dc:creator><![CDATA[Ken]]></dc:creator>
		<pubDate>Tue, 22 May 2012 19:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-287267</guid>
		<description><![CDATA[Cool!!! This saves us a lot of time and keep going for this kind of examples.]]></description>
		<content:encoded><![CDATA[<p>Cool!!! This saves us a lot of time and keep going for this kind of examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-285532</link>
		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Thu, 17 May 2012 18:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-285532</guid>
		<description><![CDATA[Great article, i hope you keep posting these great examples.]]></description>
		<content:encoded><![CDATA[<p>Great article, i hope you keep posting these great examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mouna</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-206421</link>
		<dc:creator><![CDATA[mouna]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 10:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-206421</guid>
		<description><![CDATA[Mouna.

Hi pinal,
can u help me, i want kill a restore process 
i try to kill all process but i always get this message : 
ALTER DATABASE is not permitted while a database is in the Restoring state.]]></description>
		<content:encoded><![CDATA[<p>Mouna.</p>
<p>Hi pinal,<br />
can u help me, i want kill a restore process<br />
i try to kill all process but i always get this message :<br />
ALTER DATABASE is not permitted while a database is in the Restoring state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Behnam</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-203385</link>
		<dc:creator><![CDATA[Behnam]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 04:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-203385</guid>
		<description><![CDATA[you are the best ;-)]]></description>
		<content:encoded><![CDATA[<p>you are the best ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-196297</link>
		<dc:creator><![CDATA[Jack]]></dc:creator>
		<pubDate>Tue, 15 Nov 2011 20:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-196297</guid>
		<description><![CDATA[@Nagavara

Uh..  A bit of &#039;that depends&#039; question, don&#039;t you think? You are asking someone who has no knowledge of your system at all. Do some testing on a test server to find the answer yourself.]]></description>
		<content:encoded><![CDATA[<p>@Nagavara</p>
<p>Uh..  A bit of &#8216;that depends&#8217; question, don&#8217;t you think? You are asking someone who has no knowledge of your system at all. Do some testing on a test server to find the answer yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagavara</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-191645</link>
		<dc:creator><![CDATA[Nagavara]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 15:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-191645</guid>
		<description><![CDATA[How long does the query execution takes place when i issue this script??]]></description>
		<content:encoded><![CDATA[<p>How long does the query execution takes place when i issue this script??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi Pahuja</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-150905</link>
		<dc:creator><![CDATA[Ravi Pahuja]]></dc:creator>
		<pubDate>Tue, 26 Jul 2011 23:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-150905</guid>
		<description><![CDATA[Hi Pinal,

Thanks for sharing this.

Really helpful.

Kind Regards,
Ravi Pahuja]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks for sharing this.</p>
<p>Really helpful.</p>
<p>Kind Regards,<br />
Ravi Pahuja</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-121856</link>
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Fri, 04 Mar 2011 13:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-121856</guid>
		<description><![CDATA[Pinalkumar Dave you consistently provide the best solutions - Keep It Up. Everytime I see &#039;sqlauthority&#039; from in google&#039;s result I know I have the answer!]]></description>
		<content:encoded><![CDATA[<p>Pinalkumar Dave you consistently provide the best solutions &#8211; Keep It Up. Everytime I see &#8216;sqlauthority&#8217; from in google&#8217;s result I know I have the answer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kernel_panic</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-84168</link>
		<dc:creator><![CDATA[kernel_panic]]></dc:creator>
		<pubDate>Sun, 15 Aug 2010 10:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-84168</guid>
		<description><![CDATA[Hi Pinal,

Please bear with me, Im new to databases. I would just like to ask if are there any impact on the database/system after running your code?

Thanks in advance.

kernel_panic]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Please bear with me, Im new to databases. I would just like to ask if are there any impact on the database/system after running your code?</p>
<p>Thanks in advance.</p>
<p>kernel_panic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-62738</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 13:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-62738</guid>
		<description><![CDATA[I would have you publicly flogged for that ;) Just becuase there&#039;s an easy way in C# to avoid situations like that:

using (var connection = new SqlConnection(@&quot;c-s&quot;))
{
var transaction = connection.BeginTransaction();
var command = new SqlCommant(@&quot;sql-text&quot;, connection, transaction);
command.ExecuteNonQuery();
} /* Connection will be closed and disposed here even if
you forgot to commit/rollback the transaction or
even when you forgot to close it explicitly */]]></description>
		<content:encoded><![CDATA[<p>I would have you publicly flogged for that ;) Just becuase there&#8217;s an easy way in C# to avoid situations like that:</p>
<p>using (var connection = new SqlConnection(@&#8221;c-s&#8221;))<br />
{<br />
var transaction = connection.BeginTransaction();<br />
var command = new SqlCommant(@&#8221;sql-text&#8221;, connection, transaction);<br />
command.ExecuteNonQuery();<br />
} /* Connection will be closed and disposed here even if<br />
you forgot to commit/rollback the transaction or<br />
even when you forgot to close it explicitly */</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harminder Singh</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-62731</link>
		<dc:creator><![CDATA[Harminder Singh]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 11:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-62731</guid>
		<description><![CDATA[If we start transaction from c# and forget to rollback this tran from c# then it lock table so your code will work in this scenario also.]]></description>
		<content:encoded><![CDATA[<p>If we start transaction from c# and forget to rollback this tran from c# then it lock table so your code will work in this scenario also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-47291</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 20:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-47291</guid>
		<description><![CDATA[Ha, I am scary to ever do this but it&#039;s clever

don&#039;t know where I got this, but another way to KILL all processes quickly (note: you&#039;ll get errors because one cannot system processed)


DECLARE @SQL VARCHAR(8000)

SELECT  @SQL = COALESCE(@SQL, &#039;&#039;) + &#039;Kill &#039; + CAST(spid AS VARCHAR(10)) + &#039;; &#039;
FROM    sys.sysprocesses
--WHERE   DBID = DB_ID(&#039;X&#039;)

PRINT @SQL
--EXEC(@SQL)]]></description>
		<content:encoded><![CDATA[<p>Ha, I am scary to ever do this but it&#8217;s clever</p>
<p>don&#8217;t know where I got this, but another way to KILL all processes quickly (note: you&#8217;ll get errors because one cannot system processed)</p>
<p>DECLARE @SQL VARCHAR(8000)</p>
<p>SELECT  @SQL = COALESCE(@SQL, &#8221;) + &#8216;Kill &#8216; + CAST(spid AS VARCHAR(10)) + &#8216;; &#8216;<br />
FROM    sys.sysprocesses<br />
&#8211;WHERE   DBID = DB_ID(&#8216;X&#8217;)</p>
<p>PRINT @SQL<br />
&#8211;EXEC(@SQL)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PP</title>
		<link>http://blog.sqlauthority.com/2009/02/06/sql-server-quickest-way-to-kill-all-threads-kill-all-user-session-kill-all-processes/#comment-46456</link>
		<dc:creator><![CDATA[PP]]></dc:creator>
		<pubDate>Sun, 08 Feb 2009 20:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2264#comment-46456</guid>
		<description><![CDATA[Good one...]]></description>
		<content:encoded><![CDATA[<p>Good one&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
