关于同步的错误:
The subscription(S) have been marked inactive and must be reinitialized. NoSync subscriptions will need to be dropped and recreated.
应该是之前的同步有错误,同步的命令如果同步失败的话,会保留小时,如果一个订阅出错,72 小时内没有处理的话,就会出现这种问题
因为复制的命令过期被删除,所以同步的命令有缺少,这个时候订阅需要重新做
MSdistribution_history 能够查到的最早数据是日期,如果一直是报这样的错误,应该在更早之前同步有有出错了
use distribution go select * from MSdistribution_history with(nolock) where comments like '%reinitialized%'
或者也可以直接根据代理号和日期来查询
USE distribution GO SELECT top 1000 comments , * FROM MSdistribution_history WHERE time > '2013-07-23 17:27:37.193' and agent_id = 6