On a production server [SQL Server 2088 R2 RTM] I started to get alerts stating:
‘Replication-Replication Transaction-Log Reader Subsystem: agent ******* failed. Possible schema corruption. Run DBCC CHECKCATALOG.’
and,
‘Replication-Replication Distribution Subsystem: agent ******* failed. The provided statistics stream is corrupt.’
I ran DBCC CHECKCATALOG on the distribution database and this didn’t seem to work. So I ran CHECKDB and it failed complaining of corruption.
There is no backup of the distribution database, and I tried to create new distribution database with instdist.sql but this did not work. I tried attaching a clean distribution database. I tried the repair utility on SQL Installation Center, and I also tried uninstalling then re-installing replication feature.
I’m now stuck with a production server that is not replicating. The replication was a simple merge replication so I can easily set it up again. Is there any way to reset replication on this server?