我对MS Sync框架相当陌生,并且一直在我的头上撞墙约四个小时,无济于事。我只是尝试同步我的数据库(一个“主”的SQL Server 2008和SQL Server CE,客户端)有:同步框架2.0错误:不支持指定的更改跟踪操作
Dim syncAgent As DataCacheSyncAgent = New DataCacheSyncAgent()
Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()
它可以在Visual Studio 2010中就好了,总是设法同步,但现在我想实现它在我的客户的电脑,我总是得到错误:
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.
我已经试过了我能想到的都没有用的一切,但就像我说我新的同步框架,并没有找到太多的谷歌帮助。我已经尝试关闭更改跟踪(通过SQL Mgmt Studio在服务器上),但那也不起作用。也许这意味着我应该在客户端关闭&?我怎样才能以编程的方式完成这项工作?