事務和快照同步時提示:當IDENTITY_INSERT設定為OFF時不能向表插入顯示值。(源:MSSQLServer,錯誤碼:544),

來源:互聯網
上載者:User

事務和快照同步時提示:當IDENTITY_INSERT設定為OFF時不能向表插入顯示值。(源:MSSQLServer,錯誤碼:544),

原因:在SQL2008同步時到SQL2008/SQL2005/SQL2014時有時由於發布配置不當(複製擴充屬性=False)


當新增資料時同步會出現的錯誤:


解決方案1: 在發行伺服器—選擇發布項—屬性(項目)—選中(表對象)—屬性(複製擴充屬性=True)如:圖1所示,

然後重啟SQL代理服務,啟動快照快照(啟動)

解決方案2:在訂閱端改表擴充屬性:

解決方案3:

把訂閱端識別欄位改為普通列(不推薦這種方法),也可解決同步。


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.