﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Antonio  / usp_KillConnections / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 06:21:48 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: usp_KillConnections</title><link>http://www.sqlservercentral.com/Forums/Topic404641-760-1.aspx</link><description>hi,its soo helpful script for me. so simple to run. really appreaciatable.thxsreejithMCAD</description><pubDate>Wed, 23 Jan 2008 14:23:09 GMT</pubDate><dc:creator>Sreejithsql</dc:creator></item><item><title>RE: usp_KillConnections</title><link>http://www.sqlservercentral.com/Forums/Topic404641-760-1.aspx</link><description>You neglected to include the net send logic.</description><pubDate>Mon, 22 Oct 2007 08:59:52 GMT</pubDate><dc:creator>Charles Deaton</dc:creator></item><item><title>RE: usp_KillConnections</title><link>http://www.sqlservercentral.com/Forums/Topic404641-760-1.aspx</link><description>For my case, after I kill user connections by using this kind of stored procedure, our application re-connects to database right away. I believe that it is the good choice to put your database in single user mode.</description><pubDate>Fri, 05 Oct 2007 10:17:06 GMT</pubDate><dc:creator>rw_ebox</dc:creator></item><item><title>RE: usp_KillConnections</title><link>http://www.sqlservercentral.com/Forums/Topic404641-760-1.aspx</link><description>Nice stored procedure to kill processes but I don't understand when you would use it?If you need everyone out of a database and need them to stay out, then I'd use:ALTER DATABASE [MyDatabase] SET SINGLE_USER WITH ROLLBACK AFTER n SECONDSdo maintenance tasks hereALTER DATABASE [MyDatabase] SET MULTI_USERWhile the maintenance tasks are running, no one else can connect.If you need to restrict it to admins only, then use RESTRICTED_USER instead of SINGLE_USER.Just a thought,Joe</description><pubDate>Fri, 05 Oct 2007 07:33:23 GMT</pubDate><dc:creator>Joe B-478020</dc:creator></item><item><title>usp_KillConnections</title><link>http://www.sqlservercentral.com/Forums/Topic404641-760-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Lock+and+Connection+Management/31966/"&gt;usp_KillConnections&lt;/A&gt;[/B]</description><pubDate>Sun, 30 Sep 2007 04:01:10 GMT</pubDate><dc:creator>Antonio Pedrosa</dc:creator></item></channel></rss>