<?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>single_user &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/single_user/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Fri, 08 Feb 2019 18:43:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>SQL Server: Auto Generate Database Detach and Attach Scripts</title>
		<link>https://www.dbrnd.com/2019/01/sql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration/</link>
					<comments>https://www.dbrnd.com/2019/01/sql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration/#respond</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 28 Jan 2019 16:16:23 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[attach]]></category>
		<category><![CDATA[data migration]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[detach]]></category>
		<category><![CDATA[multi_user]]></category>
		<category><![CDATA[single_user]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4070</guid>

					<description><![CDATA[In this post, I am sharing two different scripts to populate attach and detach scripts for all your SQL Server Databases. When we are migrating our SQL Database Server, we require to move all databases from one server to another server. If you have a big number of databases, making of individual attach and detach [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&amp;linkname=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&amp;linkname=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&amp;linkname=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&amp;linkname=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&amp;linkname=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&amp;linkname=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2019%2F01%2Fsql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration%2F&#038;title=SQL%20Server%3A%20Auto%20Generate%20Database%20Detach%20and%20Attach%20Scripts" data-a2a-url="https://www.dbrnd.com/2019/01/sql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration/" data-a2a-title="SQL Server: Auto Generate Database Detach and Attach Scripts"></a></p><p>In this post, I am sharing two different scripts to populate attach and detach scripts for all your SQL Server Databases.</p>
<blockquote><p>When we are migrating our SQL Database Server, we require to move all databases from one server to another server.</p>
<p>If you have a big number of databases, making of individual attach and detach script will take more time. </p></blockquote>
<blockquote><p>I have also added script to change database access mode like: Multi_User to Single_User for Detach Process and Single_User to Multi_User for Attach Process. </p>
<p>If your database is in use, you may require to change the database access mode to close all running connections.</p></blockquote>
<p>Using this script you can populate attach and detach scripts for all databases.<br />
<strong>Execute this script to generate detach scripts for all databases:</strong></p>
<pre class="crayon-plain-tag">DECLARE @DatabaseName AS VARCHAR(255)
DECLARE CurDetach CURSOR FOR
  
  SELECT name
  FROM   MASTER.sys.databases
  WHERE  owner_sid &gt; 1;

OPEN CurDetach
FETCH Next FROM CurDetach INTO @DatabaseName
WHILE @@FETCH_STATUS = 0
  BEGIN      
	  PRINT 
		'ALTER DATABASE ' + @DatabaseName + ' SET SINGLE_USER WITH ROLLBACK IMMEDIATE' 
		+ CHAR(10) + ' GO' + CHAR(10) +
		'sp_detach_db ' + @DatabaseName + CHAR(10)
		+ ' GO' + CHAR(10) + 'Print ''Detach of '
		+ @DatabaseName
		+ ' database completed successfully'''
		+ CHAR(10) + ' GO'

      FETCH NEXT FROM CurDetach INTO @DatabaseName
  END

CLOSE CurDetach
DEALLOCATE CurDetach</pre> </p>
<p><strong>Execute this script to generate attach scripts for all databases:</strong><br />
You can change your file name or file path using @Filepath variable.</p>
<pre class="crayon-plain-tag">DECLARE @DatabaseName AS VARCHAR(255)
DECLARE @Filepath AS VARCHAR(255)

SET @Filepath = 'C:\SQLDATA\'

DECLARE CurAttach CURSOR FOR
  SELECT name
  FROM   MASTER.sys.databases
  WHERE  owner_sid &gt; 1;

OPEN CurAttach
FETCH Next FROM CurAttach INTO @DatabaseName
WHILE @@FETCH_STATUS = 0
  BEGIN      
	  PRINT 
		'CREATE DATABASE ' + @DatabaseName + ' ON
		(FILENAME = '+ @Filepath + @DatabaseName +'.mdf)
		,(FILENAME = '+ @Filepath + @DatabaseName +'.ldf)
		FOR ATTACH
		GO

		ALTER DATABASE '+ @DatabaseName +' SET MULTI_USER WITH ROLLBACK IMMEDIATE
		GO'
      FETCH NEXT FROM CurAttach INTO @DatabaseName
  END

CLOSE CurAttach
DEALLOCATE CurAttach</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2019/01/sql-server-auto-generate-database-detach-and-attach-scripts-single_user-multi_user-database-mode-data-migration/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQL Server Interview: What is difference between SINGLE_USER, RESTRICTED_USER and MULTI_USER</title>
		<link>https://www.dbrnd.com/2017/05/sql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 18 May 2017 16:16:06 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[multi_user]]></category>
		<category><![CDATA[RESTRICTED_USER]]></category>
		<category><![CDATA[single_user]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5085</guid>

					<description><![CDATA[If you are a beginner for SQL DBA profile, an interviewer may as this question like What is the difference between SINGLE_USER, RESTRICTED_USER and MULTI_USER in SQL Server. If you confuse and want to give your answer in one line, you can say like These are the ALTER DATABASE SET commands which we can use [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&amp;linkname=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&amp;linkname=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&amp;linkname=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&amp;linkname=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&amp;linkname=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&amp;linkname=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F05%2Fsql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user%2F&#038;title=SQL%20Server%20Interview%3A%20What%20is%20difference%20between%20SINGLE_USER%2C%20RESTRICTED_USER%20and%20MULTI_USER" data-a2a-url="https://www.dbrnd.com/2017/05/sql-server-interview-what-is-difference-between-single_user-restricted_user-and-multi_user/" data-a2a-title="SQL Server Interview: What is difference between SINGLE_USER, RESTRICTED_USER and MULTI_USER"></a></p><p>If you are a beginner for SQL DBA profile, an interviewer may as this question like What is the difference between SINGLE_USER, RESTRICTED_USER and MULTI_USER in SQL Server.</p>
<p>If you confuse and want to give your answer in one line, you can say like These are the ALTER DATABASE SET commands which we can use to get exclusive access to SQL Server Database.</p>
<p><strong>SINGLE_USER: Only one user can connect to the database at a time</strong></p>
<pre class="crayon-plain-tag">ALTER DATABASE Database_Name 
SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO</pre> </p>
<p><strong>RESTRICTED_USER: Only DB_OWNER, DB_CREATOR or SYSADMIN roles can connect to the database</strong></p>
<pre class="crayon-plain-tag">ALTER DATABASE Database_Name 
SET RESTRICTED_USER WITH ROLLBACK IMMEDIATE
GO</pre> </p>
<p><strong>MULTI_USER: Any number of users can connect to the database</strong></p>
<pre class="crayon-plain-tag">ALTER DATABASE Database_Name 
SET MULTI_USER 
GO</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Kill your running Sessions or Change Database Mode (Multi_User to Single_User)</title>
		<link>https://www.dbrnd.com/2016/12/sql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 23 Dec 2016 13:22:24 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[block transaction]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database mode]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[multi_user]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[rename database]]></category>
		<category><![CDATA[Session]]></category>
		<category><![CDATA[single_user]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[transaction]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4010</guid>

					<description><![CDATA[In this post, I am sharing scripts to kill all your running processes or sessions of SQL Server. DBA always set time of database maintenance activities, but sometimes they find few running sessions so they require closing all connections of a SQL Server Database. Before executing this script, please take care and verify all running [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&amp;linkname=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&amp;linkname=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&amp;linkname=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&amp;linkname=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&amp;linkname=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&amp;linkname=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F12%2Fsql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user%2F&#038;title=SQL%20Server%3A%20Kill%20your%20running%20Sessions%20or%20Change%20Database%20Mode%20%28Multi_User%20to%20Single_User%29" data-a2a-url="https://www.dbrnd.com/2016/12/sql-server-kill-your-running-sessions-processes-or-change-database-mode-multi_user-to-single_user/" data-a2a-title="SQL Server: Kill your running Sessions or Change Database Mode (Multi_User to Single_User)"></a></p><p>In this post, I am sharing scripts to kill all your running processes or sessions of SQL Server.</p>
<blockquote><p>DBA always set time of database maintenance activities, but sometimes they find few running sessions so they require closing all connections of a SQL Server Database.</p></blockquote>
<blockquote><p>Before executing this script, please take care and verify all running connections and processes otherwise this script will harm to your data.</p></blockquote>
<blockquote><p>You require this type of script very occasionally, but I am sharing here because this is also one of the important scripts for SQL DBA.</p></blockquote>
<p><strong>How to find running sessions or processes in SQL Server?</strong></p>
<blockquote class="wp-embedded-content" data-secret="uoIuCGW1z7"><p><a href="https://www.dbrnd.com/2015/06/script-to-find-running-process-session-logged-user-in-sql-server/">Script to find Running Process and Session in SQL Server</a></p></blockquote>
<p><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2015/06/script-to-find-running-process-session-logged-user-in-sql-server/embed/#?secret=uoIuCGW1z7" data-secret="uoIuCGW1z7" width="600" height="338" title="&#8220;Script to find Running Process and Session in SQL Server&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p><strong>Command to Kill particular session_id:</strong></p><pre class="crayon-plain-tag">KILL 'session_id'</pre><p>
<p><strong>Script to kill multiple sessions:</strong></p>
<pre class="crayon-plain-tag">DECLARE @DatabaseName nvarchar(50)
SET @DatabaseName = 'dbrnd'

DECLARE @SQL varchar(max)
SET @SQL = ''

SELECT @SQL = @SQL + 'Kill ' + Convert(varchar, SPId) + ';'
FROM MASTER..SysProcesses
WHERE DBId = DB_ID(@DatabaseName) AND SPId &lt;&gt; @@SPId

EXEC(@SQL)</pre> </p>
<p><strong>Change your database mode from multi-user to single-user:<br />
</strong></p>
<blockquote><p>Once you change the database mode from multi-user to single-user, SQL Server immediately stops all the connections of the database. No one can connect to that database.</p></blockquote>
<blockquote><p>The DBA can perform the maintenance activity and after that, they can again change the database mode from single-user to multi-user.</p></blockquote>
<blockquote><p><strong>To set Single User:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE [Database_Name] SET SINGLE_USER WITH ROLLBACK IMMEDIATE</pre><p>
<strong>To set Multi User:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE [Database_Name] SET MULTI_USER WITH ROLLBACK IMMEDIATE</pre><p>
</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
