使用 MS 同步效果,某些更改无法应用

发布于 2024-09-26 04:28:46 字数 353 浏览 0 评论 0原文

我正在使用同步框架在 SQL-Server 和 SDF 之间进行同步。我使用 VS-2010 本地数据库缓存来执行实际同步,并将 ConflictResolver 设置为客户端获胜。

我尝试同步两者之间的更改,仅修改了一侧,但某些记录无法同步到另一侧(从 SDF 到 SQL)。 在从 Agent.Synchronize() 方法返回的 SyncStatistics 中,我看到 SyncStatistics.DownloadChangesFailed 值设置为 9。

但是我无法收集更多信息。

有人能帮我理解这一点吗?我认为这里不应该存在冲突,但如果存在冲突,Client-Wins 设置是否就足够了?

提前致谢, 阿萨夫。

I'm using the sync framework to sync between an SQL-Server and an SDF. I'm using VS-2010 Local Database Cache to do the actual sync, with the ConflictResolver set to client wins.

I tried to sync changes between the two, having modified only one side, and yet some records fail to sync to the other side (from SDF to SQL).
In the SyncStatistics returned from the Agent.Synchronize() method, I saw that the SyncStatistics.DownloadChangesFailed value was set to 9.

I could not however glean any more information.

Can anybody help me understand this? I don't think there should be a conflict here, but if there is - shouldn't the Client-Wins setting be sufficient?

Thanks in Advance,
Assaf.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人事已非 2024-10-03 04:28:46

结果我忘记添加服务器端冲突处理。

加上这一点,我一切都开始工作了。
阿萨夫

Turns out that I forgot to add server side handling of conflicts.

Adding that, I got everything to work.
Assaf

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文