SQL Server – How to Disable Replication When Distribution DB is Lost

disaster recoveryreplicationsql server

I am in the situation that the Distribution database in SQL Server 2014 is lost and I want to disable the replication. I have found a solution how to achieve that when data files are present (also asked here). Unfortunately, I do not have data files of Distribution database. Is it possible to disable the replication when Distribution database is completely lost?

Best Answer

Finally, I have found a solution. Problem was that I was calling the stored procedures from query windows of Management Studio (some stored procedures must be called from sqlcmd).

Then, it is enough to follow instructions for TSQL (with @no_checks and @ignore_distributor).