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

Cannot drop server because it is used as a Subscriber to remote Publisher in replication.

$
0
0
Trying to remove replication from a test environment and have the pubs/subs all removed but when i try to remove the distributor by running sp_dropdistpublisher, I get the error above. I have tried running sp_dropsubscriber which runs fine but still get the same error. Tried running sp_dropdispubliser with the ignore_distributor = 1 no luck same error. Some background, there are 3 sql servers in this environment involved in replication. Server 1 had been the original publisher and distributor, server 2 was a subscriber to the original and server 3 is a new server set up to take over the distribution function. Server 1 and 2 were up and running transactional replication and I removed all replication from them. I set up server 3 as the new distributor and started configuring Server 1 and 2 as publisher and subscriber, had some issues and got put on other tasks and never completed. After a couple weeks I needed the original replication set up of  server 1 as distributor and publisher and server 2 as subscriber for testing a prod change. I dropped the distribution from server 3 (or so I thought) and reconfigured server 1 and 2. That all worked and now, I am back to dropping the replication from server 1 and 2 and configuring server as distributor. When I started on that today I saw there was still a distribution db on server 3 so i tried generating scripts to remove the distributor and that is where I ran into the error. When I look in SSMS under server objects I can still see linked servers to server 1 and 2. Any suggestions on how to get this removed? I would like to do so without taking the distribution db offline and dropping it so it is a clean set up. Thank you

Viewing all articles
Browse latest Browse all 4054

Trending Articles



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