﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss content posted by Jorge Novo / Article Discussions / Article Discussions by Author  / Set Database to Single user  / 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 19:28:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Set Database to Single user</title><link>http://www.sqlservercentral.com/Forums/Topic473825-463-1.aspx</link><description>An extreme warning needs to be added to this.  If you set the database to single user from SSMS, then only THAT session can do anything with the database.  You can't even use the explorer window because that's a different session.  But, that's NOT the worst of it.  If you make the mistake of closing the session that set the DB to single user, you stand a huge chance of a Web Service other some other functionality grabbing that single connection and you won't be able to change it without killing EVERYTHING that touches the database.  If you can't find all of that stuff, then it may require a reboot in the "maintenance" mode so that you can actually fix it.So, here's the warning...[color="RED"][font="Arial Black"]DO NOT CLOSE THE CURRENT SESSION IF IT IS THE SESSION THAT SET THE SINGLE USER MODE!!![/font][/color];-)</description><pubDate>Fri, 13 Jul 2012 11:39:02 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: Set Database to Single user</title><link>http://www.sqlservercentral.com/Forums/Topic473825-463-1.aspx</link><description>Forgive my ignorance but...The MSDN document was a little vague on who could do this:Requires ALTER permission on the database.But I know that there are some commands that can alter the database,under db_owner but some items require sysadmin (modify file).It appears that this can this be done by members of db_owner by default or is this reserved for the sysadmin?  If db_owner members can do this then what would we need to change to prevent it or at least limit who can do this?  I tried this under a db_owner account on a test database.Sorry, I'm just a programmer that sometimes has to wear a DBA hat (more and more) for some DBA actions.  I document what I do and tell the DBA's what I plan on doing (or did) and provide the script.Thanks.</description><pubDate>Fri, 13 Jul 2012 06:20:36 GMT</pubDate><dc:creator>charles.byrne</dc:creator></item><item><title>Set Database to Single user </title><link>http://www.sqlservercentral.com/Forums/Topic473825-463-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Maintenance/62619/"&gt;Set Database to Single user &lt;/A&gt;[/B]</description><pubDate>Mon, 24 Mar 2008 20:14:36 GMT</pubDate><dc:creator>Jorge Novo-@ETLDEVDBA</dc:creator></item></channel></rss>