Database mirroring must be removed before you drop SQL Server database
Error Message
TITLE: Microsoft SQL Server Management Studio——————————
Drop failed for Database ‘Test_SQLServer_Mirroring’. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+Database&LinkId=20476
——————————
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
——————————
The database ‘Test_SQLServer_Mirroring’ is enabled for database mirroring. Database mirroring must be removed before you drop the database. (Microsoft SQL Server, Error: 3743)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=3743&LinkId=20476
During the testing with mirroring, By mistake,
- I dropped End Points both at Principle and Mirror
- Disable mirroring on Principle
- Dropped the database on Principle
- and When I tried to drop the database in Mirrored Server, I received the following error message.
Error , is simple, as this was blunder, which we did, Ideally, we should
- First disable mirroring
- Drop End Point
- and then drop databases
-- Disable Mirroring for Sample Database named [Test_SQLServer_Mirroring] ALTER DATABASE Test_SQLServer_Mirroring SET PARTNER OFFOnce this statement was executed successfully, I was able to drop the database on mirroring.
Tags : The database … is enabled for database mirroring. Database mirroring must be removed before you drop the database,
No comments:
Post a Comment