我對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在服務器上),但那也不起作用。也許這意味着我應該在客戶端關閉&?我怎樣才能以編程的方式完成這項工作?