Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Distributor database has application objects

$
0
0

I am working on a replication issue where the distribution database has been set to point to the Publisher database. I am attempting to remove all replication and start again.

I have run sp_dropdistpublisher on all the publishers that refer to the database as the distributor, but if I run

exec sp_replicationdboption @dbname = N'xxxx', @optname = N'publish', @value = N'true'
(where xxxx is the name of the publisher database that has also been configured for distribution)

then it fails with:

Msg 20028, Level 16, State 1, Procedure sp_MSpublishdb, Line 56
The Distributor has not been installed correctly. Could not enable database for publishing.

If I generate the drop commands for all replication objects these involve running sp_dropdistributiondb, however this would attempt to drop the database. I don't want to do this - I just want to (ideally) remove all distribution objects from it and 'unmark' it as a distribution database.

This is a production environment, so I need to tread with care!

Any help appreciated.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>