Reputation: 9960
I have two servers:
Server 1 (Publisher)
Server 2 (Subscriber)
I have a set up a PULL subscription.
What are the correct steps to programmatically remove this entire replication?
I need to know this because I have a custom application that does Replication and in an event of errors, I need to "start fresh" so I need to delete the publication, subscription and any other objects related to it...
Upvotes: 0
Views: 203
Reputation: 3755
The steps are:
Here are some links to assist you:
Both examples show how to delete the pull subscription and publication using SSMS, T-SQL, and RMO. T-SQL or RMO would be the way to go to do it programmatically. I hope this helps.
Upvotes: 1