SyncFramework从1.0升级到2.0 Sql Server CE数据库更改跟踪问题

发布于 2024-08-21 04:29:54 字数 543 浏览 4 评论 0原文

我正在尝试升级使用 Sync Framework 1.0 将 SqlServerCe 数据库与 SqlServer 2005 同步的应用程序。在客户端上,现有数据库已启用更改跟踪,但启动同步时 SyncFramework 2.0 无法找到上次接收的同步锚,然后尝试重新初始化更改跟踪,但失败。

我得到了例外...

{System.Exception} = {"The specified change tracking operation is not supported. To carry out this operation on the table, disable the change tracking on the table, and enable the change tracking."}

似乎我所能做的就是删除本地数据库并重新创建它。这对我们来说不是一个很好的解决方案,因为客户端数据库中的某些数据未与服务器同步,并且我们的用户不希望在升级中丢失这些数据。

SyncFramework 2.0 无法找到现有的“最后收到的同步锚点”是否有任何原因?

I'm trying to upgrade an application that uses Sync Framework 1.0 to synchronise a SqlServerCe database with SqlServer 2005. On the client, the existing database already has change tracking enabled, but when the sync is initiated SyncFramework 2.0 fails to find the last Sync Received anchor and then tries to re=initialize the Change tracking, which fails.

I get the exception...

{System.Exception} = {"The specified change tracking operation is not supported. To carry out this operation on the table, disable the change tracking on the table, and enable the change tracking."}

It seems like all I can do is delete the local database and recreate it. Which is not a great solution for us, since some of the data in the clients database is not synced with the server, and our users would prefer not to loose this data in the upgrade.

Is there any reason why SyncFramework 2.0 cannot locate the existing Last received sync anchor?

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

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

发布评论

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

评论(1

冷弦 2024-08-28 04:29:54

您是否尝试过安装Sync Framework 1.0 SP1? (http://www .microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b4f54dd0-5b66-4043-9b50-b12604bfcf35

VS 2010 设计器仍然使用 v1。 SQL Compact SP2 公开更改跟踪 API,Sync Fx V1 SP1 更新 Sync Fx 以使用此 API。

have you tried installing Sync Framework 1.0 SP1 ? (http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b4f54dd0-5b66-4043-9b50-b12604bfcf35)

The VS 2010 designer still uses v1. SQL Compact SP2 exposes the change tracking API and the Sync Fx V1 SP1 updates Sync Fx to use this API.

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