我在删除复制出现一下错误? 环境 Sql2005 ,win2003
Msg 208, Level 16, State 1, Procedure sp_MSrepl_dropsubscription, Line 103
Invalid object name 'dbo.syssubscriptions'.
Msg 266, Level 16, State 2, Procedure sp_MSrepl_dropsubscription, Line 103
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1.
Msg 266, Level 16, State 2, Procedure sp_dropsubscription, Line 0
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1.
Msg 266, Level 16, State 2, Procedure sp_MSpublishdb, Line 0
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1.
Msg 266, Level 16, State 2, Procedure sp_replicationdboption, Line 0
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1.
Msg 266, Level 16, State 2, Procedure sp_dropdistributor, Line 0
Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1.

解决方案 »

  1.   

    检查一下应该是有一些begin tran 没有对应的commit或者rollback之类的
    先运行一下rollback transaction了
      

  2.   

    不是 rollback transaction  的问题!
      

  3.   

    检查下sp_MSrepl_dropsubscription,看能不能找出问题
      

  4.   

    Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 0, current count = 1你再检查一下是否所有的case或者if else 路径都有commit
    好明显你的transanction count 有问题
      

  5.   

    数据库更新补丁了吗?
    在SQL 2000里面做复制的时候,删除时经常出现这样的问题,但是2005中还没有遇到。我不知道有没有办法解决你的问题,我一般都是删除后,手工处理复制留下的东西,其的方法不知道。