SQL SERVER 订阅发布在restore DB以后的问题

http://blogs.msdn.com/b/repltalk/archive/2010/02/19/the-process-could-not-execute-sp-repldone-sp-replcounters.aspx

could not execute 'sp_repldone/sp_replcounters' 

sol :exec sp_replflush

 

The process could not execute 'sp_replcmds' on ‘Server Name’.

sol: http://www.cnblogs.com/dudu/archive/2010/08/25/1808313.html

 

将数据库的Owner设置为sa,如下图:

 

 

 

After restore db, transactional replication can't delete.

EXEC sp_dropsubscription

@publication = N'Tran_Name',

@article = N'all',

@subscriber = 'SQLSERVERNAME\SQLINSTANCE',
@ignore_distributor = 1;

EXEC sp_droppublication 'N'Tran_Name',1

posted on 2015-06-03 16:47  无法显示此网页  阅读(192)  评论(0编辑  收藏  举报

导航