<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; FIX : Error : 3702 Cannot drop database because it is currently in use.</title>
	<atom:link href="http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 24 May 2013 22:47:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: jimmi</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-450161</link>
		<dc:creator><![CDATA[jimmi]]></dc:creator>
		<pubDate>Fri, 05 Apr 2013 06:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-450161</guid>
		<description><![CDATA[Thank u very much it is working]]></description>
		<content:encoded><![CDATA[<p>Thank u very much it is working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rainer</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-449850</link>
		<dc:creator><![CDATA[Rainer]]></dc:creator>
		<pubDate>Thu, 04 Apr 2013 14:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-449850</guid>
		<description><![CDATA[5 years later still working fine^^ thx]]></description>
		<content:encoded><![CDATA[<p>5 years later still working fine^^ thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kundan kumar</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-441731</link>
		<dc:creator><![CDATA[kundan kumar]]></dc:creator>
		<pubDate>Thu, 21 Mar 2013 17:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-441731</guid>
		<description><![CDATA[when i m using this query 
CREATE DATABASE distribution ON
( FILENAME = N&#039;C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\distribution.mdf&#039;)
FOR ATTACH
GO
Database &#039;distribution&#039; already exists. Choose a different database name.]]></description>
		<content:encoded><![CDATA[<p>when i m using this query<br />
CREATE DATABASE distribution ON<br />
( FILENAME = N&#8217;C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\distribution.mdf&#8217;)<br />
FOR ATTACH<br />
GO<br />
Database &#8216;distribution&#8217; already exists. Choose a different database name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashutosh</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-440701</link>
		<dc:creator><![CDATA[Ashutosh]]></dc:creator>
		<pubDate>Wed, 20 Mar 2013 06:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-440701</guid>
		<description><![CDATA[Is there any problem with this query---
USE MASTER
GO

ALTER DATABASE {DB} SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
GO

DROP DATABASE {DB}
GO]]></description>
		<content:encoded><![CDATA[<p>Is there any problem with this query&#8212;<br />
USE MASTER<br />
GO</p>
<p>ALTER DATABASE {DB} SET SINGLE_USER WITH ROLLBACK IMMEDIATE;<br />
GO</p>
<p>DROP DATABASE {DB}<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeeBhup</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-437153</link>
		<dc:creator><![CDATA[SeeBhup]]></dc:creator>
		<pubDate>Thu, 14 Mar 2013 09:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-437153</guid>
		<description><![CDATA[In case u r still getting the error, close ur server, restart it, connect and then run the code below..

USE Master;
GO
DROP DATABASE MobileMetrics;
GO]]></description>
		<content:encoded><![CDATA[<p>In case u r still getting the error, close ur server, restart it, connect and then run the code below..</p>
<p>USE Master;<br />
GO<br />
DROP DATABASE MobileMetrics;<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-428460</link>
		<dc:creator><![CDATA[Vijay]]></dc:creator>
		<pubDate>Wed, 27 Feb 2013 11:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-428460</guid>
		<description><![CDATA[i had same issue...first step please close all the windows associated with the DB you are trying to delete in the tool you are trying to.]]></description>
		<content:encoded><![CDATA[<p>i had same issue&#8230;first step please close all the windows associated with the DB you are trying to delete in the tool you are trying to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #006 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-389235</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #006 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 08 Dec 2012 01:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-389235</guid>
		<description><![CDATA[[...] FIX : Error : 3702 Cannot drop database because it is currently in use This is a very generic error when DROP Database is command is executed and the database is not dropped. The common mistake user is kept the connection open with this database and trying to drop the database. The database cannot be dropped if there is any other connection open along with it. It is always a good idea to take database in single user mode before dropping it. Here is the quick tutorial regarding how to bring the database in single user mode: Using T-SQL &#124; Using SSMS. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] FIX : Error : 3702 Cannot drop database because it is currently in use This is a very generic error when DROP Database is command is executed and the database is not dropped. The common mistake user is kept the connection open with this database and trying to drop the database. The database cannot be dropped if there is any other connection open along with it. It is always a good idea to take database in single user mode before dropping it. Here is the quick tutorial regarding how to bring the database in single user mode: Using T-SQL | Using SSMS. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-302230</link>
		<dc:creator><![CDATA[jay]]></dc:creator>
		<pubDate>Sun, 17 Jun 2012 03:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-302230</guid>
		<description><![CDATA[Hey Guys,

Thanks for tip, it does work for me to alter to single user than drop.

Thanks,
Jay]]></description>
		<content:encoded><![CDATA[<p>Hey Guys,</p>
<p>Thanks for tip, it does work for me to alter to single user than drop.</p>
<p>Thanks,<br />
Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dilshan R</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-289041</link>
		<dc:creator><![CDATA[Dilshan R]]></dc:creator>
		<pubDate>Sat, 26 May 2012 10:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-289041</guid>
		<description><![CDATA[This works, Thanks]]></description>
		<content:encoded><![CDATA[<p>This works, Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelly</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-260876</link>
		<dc:creator><![CDATA[Kelly]]></dc:creator>
		<pubDate>Thu, 08 Mar 2012 19:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-260876</guid>
		<description><![CDATA[One thing to check is whether the currently logged on user is using the database as it&#039;s default database.  You can&#039;t drop the database under this circumstance.  Change the default database to master and you should be able to drop it.]]></description>
		<content:encoded><![CDATA[<p>One thing to check is whether the currently logged on user is using the database as it&#8217;s default database.  You can&#8217;t drop the database under this circumstance.  Change the default database to master and you should be able to drop it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-222055</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Dec 2011 11:30:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-222055</guid>
		<description><![CDATA[If you have the latest backup, you can restore it to get yesterday&#039;s data]]></description>
		<content:encoded><![CDATA[<p>If you have the latest backup, you can restore it to get yesterday&#8217;s data</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh saravanan</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-221209</link>
		<dc:creator><![CDATA[Ramesh saravanan]]></dc:creator>
		<pubDate>Mon, 19 Dec 2011 09:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-221209</guid>
		<description><![CDATA[yester day i dropedn my database some problem but today i want yester day dropped database..pls helpme..any idea pls tell me...]]></description>
		<content:encoded><![CDATA[<p>yester day i dropedn my database some problem but today i want yester day dropped database..pls helpme..any idea pls tell me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satish</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-208088</link>
		<dc:creator><![CDATA[Satish]]></dc:creator>
		<pubDate>Wed, 30 Nov 2011 17:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-208088</guid>
		<description><![CDATA[This is the code which worked for me in dropping a test database in Visula studio Test Class [class cleanup()]. Note you will need to add the &quot;Alter database&quot; parameter to the Sqlcommand as well.

SqlConnection sqlConn = new SqlConnection(sqlConnectionString);
            sqlConn.Open();
            SqlCommand sqlDBCheck = new SqlCommand(&quot;USE Master&quot;, sqlConn);
            sqlDBCheck.ExecuteNonQuery();
            sqlDBCheck = new SqlCommand(&quot;ALTER DATABASE SM_Test_03 SET SINGLE_USER WITH ROLLBACK IMMEDIATE&quot;, sqlConn);
            sqlDBCheck.ExecuteNonQuery();          
            sqlDBCheck = new SqlCommand(&quot;IF EXISTS(select * from sys.databases where name = &#039;SM_Test_03&#039;) DROP DATABASE SM_Test_03&quot;, sqlConn);
            sqlDBCheck.ExecuteNonQuery();
            sqlConn.Close();            
Thanks,
-satish]]></description>
		<content:encoded><![CDATA[<p>This is the code which worked for me in dropping a test database in Visula studio Test Class [class cleanup()]. Note you will need to add the &#8220;Alter database&#8221; parameter to the Sqlcommand as well.</p>
<p>SqlConnection sqlConn = new SqlConnection(sqlConnectionString);<br />
            sqlConn.Open();<br />
            SqlCommand sqlDBCheck = new SqlCommand(&#8220;USE Master&#8221;, sqlConn);<br />
            sqlDBCheck.ExecuteNonQuery();<br />
            sqlDBCheck = new SqlCommand(&#8220;ALTER DATABASE SM_Test_03 SET SINGLE_USER WITH ROLLBACK IMMEDIATE&#8221;, sqlConn);<br />
            sqlDBCheck.ExecuteNonQuery();<br />
            sqlDBCheck = new SqlCommand(&#8220;IF EXISTS(select * from sys.databases where name = &#8216;SM_Test_03&#8242;) DROP DATABASE SM_Test_03&#8243;, sqlConn);<br />
            sqlDBCheck.ExecuteNonQuery();<br />
            sqlConn.Close();<br />
Thanks,<br />
-satish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodel</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-167407</link>
		<dc:creator><![CDATA[Rodel]]></dc:creator>
		<pubDate>Mon, 12 Sep 2011 05:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-167407</guid>
		<description><![CDATA[Thanks, this help me out.]]></description>
		<content:encoded><![CDATA[<p>Thanks, this help me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Wadsworth</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-139190</link>
		<dc:creator><![CDATA[David Wadsworth]]></dc:creator>
		<pubDate>Mon, 06 Jun 2011 08:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-139190</guid>
		<description><![CDATA[Cheers Bud, this worked a treat.]]></description>
		<content:encoded><![CDATA[<p>Cheers Bud, this worked a treat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tarun</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-129965</link>
		<dc:creator><![CDATA[Tarun]]></dc:creator>
		<pubDate>Tue, 19 Apr 2011 11:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-129965</guid>
		<description><![CDATA[I have always found a solution in your blogs.. THANKS MUCH man.. U are great !! :)]]></description>
		<content:encoded><![CDATA[<p>I have always found a solution in your blogs.. THANKS MUCH man.. U are great !! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-123426</link>
		<dc:creator><![CDATA[Roberto]]></dc:creator>
		<pubDate>Wed, 16 Mar 2011 02:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-123426</guid>
		<description><![CDATA[Thanks Pinal, this article definitely fixed my problem.]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal, this article definitely fixed my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iaef</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-122435</link>
		<dc:creator><![CDATA[iaef]]></dc:creator>
		<pubDate>Tue, 08 Mar 2011 17:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-122435</guid>
		<description><![CDATA[This was driving me crazy since spid 11 from sa in background status was still keeping me from dropping my database, and since I am making small changes and recreating and repopulating it, it was a total waste of time to kept going out and in from SQL Server Management Studio. (Educational environment)

Your blog post was really useful, and I ended up mixing a couple of the solutions given by you all (especially Jim Sz &amp; anand). This one gave results to me, but it still seems to be some kind of timeout that must happen since last USE master command, before this one takes on. But it is much better than going out and in everytime. So here is the script:

ALTER DATABASE dbName
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE

USE master

DECLARE @dbid INT
SELECT @dbid = dbid FROM sys.sysdatabases WHERE name = &#039;dbName&#039;

IF EXISTS (SELECT spid FROM sys.sysprocesses WHERE dbid = @dbid)
BEGIN
RAISERROR (&#039;The restore cannot be done&#039;, 16, 1)
SELECT &#039;These processes are blocking the restore from occurring&#039; AS Note, spid, last_batch, status, hostname, loginame FROM sys.sysprocesses WHERE dbid = @dbid
END

DROP DATABASE dbName]]></description>
		<content:encoded><![CDATA[<p>This was driving me crazy since spid 11 from sa in background status was still keeping me from dropping my database, and since I am making small changes and recreating and repopulating it, it was a total waste of time to kept going out and in from SQL Server Management Studio. (Educational environment)</p>
<p>Your blog post was really useful, and I ended up mixing a couple of the solutions given by you all (especially Jim Sz &amp; anand). This one gave results to me, but it still seems to be some kind of timeout that must happen since last USE master command, before this one takes on. But it is much better than going out and in everytime. So here is the script:</p>
<p>ALTER DATABASE dbName<br />
SET SINGLE_USER<br />
WITH ROLLBACK IMMEDIATE</p>
<p>USE master</p>
<p>DECLARE @dbid INT<br />
SELECT @dbid = dbid FROM sys.sysdatabases WHERE name = &#8216;dbName&#8217;</p>
<p>IF EXISTS (SELECT spid FROM sys.sysprocesses WHERE dbid = @dbid)<br />
BEGIN<br />
RAISERROR (&#8216;The restore cannot be done&#8217;, 16, 1)<br />
SELECT &#8216;These processes are blocking the restore from occurring&#8217; AS Note, spid, last_batch, status, hostname, loginame FROM sys.sysprocesses WHERE dbid = @dbid<br />
END</p>
<p>DROP DATABASE dbName</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JIN</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-120624</link>
		<dc:creator><![CDATA[JIN]]></dc:creator>
		<pubDate>Fri, 25 Feb 2011 04:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-120624</guid>
		<description><![CDATA[Hi Edwin Your solution works for me. Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Edwin Your solution works for me. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-87718</link>
		<dc:creator><![CDATA[Kim]]></dc:creator>
		<pubDate>Mon, 13 Sep 2010 14:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-87718</guid>
		<description><![CDATA[For anyone who has multiple databases on an instance and can&#039;t afford to restart the SQL Server service, here is what I did.

Do an sp_who and make a note of all the spids associated with the DB you want to drop.

Then I created a script to kill the spids and immediatly drop the DB:

kill 58;
go
kill 57;
go

USE Master;
GO
DROP DATABASE AdventureWorks;
GO]]></description>
		<content:encoded><![CDATA[<p>For anyone who has multiple databases on an instance and can&#8217;t afford to restart the SQL Server service, here is what I did.</p>
<p>Do an sp_who and make a note of all the spids associated with the DB you want to drop.</p>
<p>Then I created a script to kill the spids and immediatly drop the DB:</p>
<p>kill 58;<br />
go<br />
kill 57;<br />
go</p>
<p>USE Master;<br />
GO<br />
DROP DATABASE AdventureWorks;<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hanako</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-87204</link>
		<dc:creator><![CDATA[hanako]]></dc:creator>
		<pubDate>Thu, 09 Sep 2010 07:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-87204</guid>
		<description><![CDATA[Hi Edwin and Faye,

Your solution works for me. Thanks a lot.]]></description>
		<content:encoded><![CDATA[<p>Hi Edwin and Faye,</p>
<p>Your solution works for me. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murali</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-73064</link>
		<dc:creator><![CDATA[Murali]]></dc:creator>
		<pubDate>Tue, 25 May 2010 19:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-73064</guid>
		<description><![CDATA[Yes, this tip worked. Great. Thanks.]]></description>
		<content:encoded><![CDATA[<p>Yes, this tip worked. Great. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: padmaja</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-70566</link>
		<dc:creator><![CDATA[padmaja]]></dc:creator>
		<pubDate>Wed, 12 May 2010 11:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-70566</guid>
		<description><![CDATA[Hi, my database is involved in replication as publisher, I am unable to drop the replication as the database went into suspect mode and I am unable to see the publisher db in local publishers folder.  

I want to drop this database but not table to do it, can any one help me]]></description>
		<content:encoded><![CDATA[<p>Hi, my database is involved in replication as publisher, I am unable to drop the replication as the database went into suspect mode and I am unable to see the publisher db in local publishers folder.  </p>
<p>I want to drop this database but not table to do it, can any one help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fisnik</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-65725</link>
		<dc:creator><![CDATA[Fisnik]]></dc:creator>
		<pubDate>Tue, 20 Apr 2010 14:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-65725</guid>
		<description><![CDATA[Thanks..

---
THIS WORKED FOR ME


Dave
If you are still getting the error after you try using
use master
go
drop database (databaseName)
go

Close SQL Server Management Studio completely. Open it again and connect as normal. Now you will be able to drop the database with
use master
go
drop database (databaseName)
go]]></description>
		<content:encoded><![CDATA[<p>Thanks..</p>
<p>&#8212;<br />
THIS WORKED FOR ME</p>
<p>Dave<br />
If you are still getting the error after you try using<br />
use master<br />
go<br />
drop database (databaseName)<br />
go</p>
<p>Close SQL Server Management Studio completely. Open it again and connect as normal. Now you will be able to drop the database with<br />
use master<br />
go<br />
drop database (databaseName)<br />
go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Fike</title>
		<link>http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-65273</link>
		<dc:creator><![CDATA[Derek Fike]]></dc:creator>
		<pubDate>Thu, 15 Apr 2010 20:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/#comment-65273</guid>
		<description><![CDATA[I found the easiest solution, when possible, just restart the sql server!  This will kill active users and allow you to do whatever you want.]]></description>
		<content:encoded><![CDATA[<p>I found the easiest solution, when possible, just restart the sql server!  This will kill active users and allow you to do whatever you want.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
