Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Cannot drop the database XXX because it is being used for replication. Expand / Collapse
Author
Message
Posted Tuesday, March 29, 2011 3:09 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 3, 2011 7:29 AM
Points: 6, Visits: 19
Hello all

I just find another simplest way to workaround it.

Expand the server in SSMS;
Right-click in Replication folder;
Click "Disable Publishing and Distribution"...

This action should delete all files, jobs and distribution database.

It worked for me.

Hope this helps
Regards
Post #1085880
Posted Saturday, January 12, 2013 10:49 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, November 14, 2014 2:31 AM
Points: 9, Visits: 112
Worked like a charm with "Offline" mode!

I had a interesting situation: my database was in Warm Standby mode, and I had a .tuf file deleted. The releiving thing was that I didn't needed this database anymore, but I couldn't delete it because of remained publications from primary log shipped database. The publication couldn't be deleted, of course, because the DB was read only. The DB could not be recovered because of missing tuf file.
The only solution that worked was putting the DB to offline mode, and then deleting manually the data and log files. Also the publication disappeared.

Thanks!
Post #1406392
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse