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

Cannot remove replication - missing tables/columns

$
0
0

I inherited a server that has pieces of replication remaining. I cannot remove this.

I have tried to disable through the GUI but I get errors for missing tables (syssubscriptions, then syspublications, then a missing column error).

I have tried to run sp_dropdistribution @no_checks=1,@ignore_distributor=1. This results in error for missing syssubscriptions table. Create that table manually and get error on invalid column srvname. This errors but also leaves the transaction open.

I have tried to run sp_replicationdboption @dbname='xxdbname',@optname='publish',@value='false'. This gives an error trying to connect to the old distributor server.

I have tried to run sp_removedbreplication 'dbname', @type='tran' but this causes blocking on my server and hasn't been able to run.

Is there any way to manually clean this up? Since the pieces are there, my log file is growing. dbcc opentran() shows an oldest non-distributed LSN and log_reuse_wait_desc = 'REPLICATION'.

Thanks for any help or suggestions!


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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