<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Server Planet &#187; kill</title>
	<atom:link href="http://sqlserverplanet.com/tag/kill/feed" rel="self" type="application/rss+xml" />
	<link>http://sqlserverplanet.com</link>
	<description>Tips and Articles on SQL Server</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:33:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Kill All Connections on a Database</title>
		<link>http://sqlserverplanet.com/scripts/kill-all-connections</link>
		<comments>http://sqlserverplanet.com/scripts/kill-all-connections#comments</comments>
		<pubDate>Tue, 06 Oct 2009 14:04:39 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[kill]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=908</guid>
		<description><![CDATA[This seems to be the easiest way to kill all connections (sessions) on a SQL Server database: ALTER DATABASE database_name SET SINGLE_USER WITH ROLLBACK IMMEDIATE After executing the above, it will put the database in single user mode. So you then need to remove single user mode using: EXEC sp_dboption 'database_name', 'single user', 'FALSE' Related [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/scripts/kill-all-connections/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

