Pause SQL server replication temporarily

安稳与你 提交于 2019-11-30 15:55:14

问题


We have a transactional replication setup using 3 SQL Servers, 1st as publisher, 2nd as distributor, and 3rd as subscriber.

We have an activity to change the location of the replicated DB (subscriber) using de-attach and attach method. During this activity, I will need to stop the SQL server and hence all replicated transactions will fail.

What's the proper way to pause the replication during this activity, so when I attach the DB again and start the SQL service, replication will resume normally.

Thanks


回答1:


Please see the following link for details of how to accomplish this:

Start and Stop a Replication Agent

The above article doesn't appear to give information on stopping the distribution agent, this can be achieved by using the stored procs detailed in the link below:

Start/Stop SQL Server Replication Agent using TSQL



来源:https://stackoverflow.com/questions/14982944/pause-sql-server-replication-temporarily

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!