﻿<?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 Sourav Mukherjee  / Killing User Connection(session) connected to the Database. / 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, 22 May 2013 10:39:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Killing User Connection(session) connected to the Database.</title><link>http://www.sqlservercentral.com/Forums/Topic1090417-2698-1.aspx</link><description>Sorry, I wasn't clear in my previous post.  When you created your post at [url=http://www.sqlservercentral.com/Contributions/New/Script]http://www.sqlservercentral.com/Contributions/New/Script[/url], I believe you ticked the box to "Include code for SQL Scripts Manager", and then you pasted your T-SQL script into the box that's supposed to contain the XML-wrapped script that runs within the SQL Scripts Manager tool; whereas you needed to paste your code into the box entitled "Insert your SQL code here".So your script is now showing up at [url=http://www.sqlservercentral.com/Scripts/rgtool/]http://www.sqlservercentral.com/Scripts/rgtool/[/url], which is a list of scripts that have been wrapped up in the XML format that allows them to run within SQL Scripts Manager.Are you able to edit your contribution, to remove the SQL Scripts Manager content?Best regards,Colin.</description><pubDate>Mon, 18 Apr 2011 16:44:13 GMT</pubDate><dc:creator>Colin Millerchip</dc:creator></item><item><title>RE: Killing User Connection(session) connected to the Database.</title><link>http://www.sqlservercentral.com/Forums/Topic1090417-2698-1.aspx</link><description>Sorry, couldn't get the hyperlink. Could you please suggest where you can see the interlink?</description><pubDate>Mon, 18 Apr 2011 14:09:19 GMT</pubDate><dc:creator>SQL-DBA-01</dc:creator></item><item><title>RE: Killing User Connection(session) connected to the Database.</title><link>http://www.sqlservercentral.com/Forums/Topic1090417-2698-1.aspx</link><description>Hi Sourav,You've marked this as being compatible with SQL Scripts Manager ([url=http://www.red-gate.com/products/dba/sql-scripts-manager/]http://www.red-gate.com/products/dba/sql-scripts-manager/[/url]), but I don't think it is.  Are you able to edit it to correct this?Thanks,Colin.</description><pubDate>Mon, 18 Apr 2011 10:45:57 GMT</pubDate><dc:creator>Colin Millerchip</dc:creator></item><item><title>RE: Killing User Connection(session) connected to the Database.</title><link>http://www.sqlservercentral.com/Forums/Topic1090417-2698-1.aspx</link><description>If your application or access to the database doesn't use dbo or sa authority you can just use: ALTER DATABASE [i]db_name[/i] SET RESTRICTED_USER With ROLLBACK IMMEDIATEThis will drop all user connections and rollback any non-committed transactions.  When RESTRICTED_USER is specified, only members of the db_owner, dbcreator, or sysadmin roles can use the database.We use this to restrict access to a system so we can backup Production databases prior to a deployment.:-)</description><pubDate>Fri, 08 Apr 2011 07:10:37 GMT</pubDate><dc:creator>SQL@DOS</dc:creator></item><item><title>Killing User Connection(session) connected to the Database.</title><link>http://www.sqlservercentral.com/Forums/Topic1090417-2698-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/kill/72838/"&gt;Killing User Connection(session) connected to the Database.&lt;/A&gt;[/B]</description><pubDate>Fri, 08 Apr 2011 00:17:35 GMT</pubDate><dc:creator>SQL-DBA-01</dc:creator></item></channel></rss>