Search code examples
sql-serversql-server-2008replicationdatabase-replication

Remove SQL Server Replication Subscriptions


I have a problem with the replication on my machine where I am stuck with a number of subscriptions showing in SSMS that do not exist. I have tried deleting them using the UI in SSMS and also using some T-SQL...but no luck. The publications don't even exist any more (they were on the same machine).

Any ideas on how I could remove them?

More info: This is the situation I appear to be in where there are 3 subscriptions (that SSMS will not let me look at because 'they do not exist').


enter image description here


Solution

  • You might have some orphaned metadata in the distribution database. If you're no longer publishing any data you might want to try Disabling Publishing and Distribution to remove the orphaned publications and subscriptions.