天天看點

[20170706]SQL Server事務複制訂閱端,job不小心被删,修複

右擊還存在的訂閱,生成腳本,有個過程sp_addpullsubscription_agent

執行,發現報錯說distribution agent 已經存在

執行:

UPDATE dbo.MSreplication_subscriptions SET distribution_agent =NULL

重新執行

exec sp_addpullsubscription_agent