locked
Sync updating remote db, but local is not updating RRS feed

  • Question

  • I'm using SQL Server 2008, and VS 2008. I follow the steps outlined in this video (http://msdn.microsoft.com/en-us/sync/cc137124.aspx). I get no errors. Even when I set my VS to break on all exceptions. I change some data in my form. Then save it (supposedly to the local SDF database file) then sync it. I look at the remote DB and the changes are there. I look at my local, and the changes are not there.

    When I it the 'save' button, the following is executed:

    this.Validate();
    
    this.demoTestBindingSource.EndEdit();
    
    this.tableAdapterManager.UpdateAll(this.demoTestDataSet);
    

    When the sync is performed, the following code is executed:
    DemoTestSyncDataCacheSyncAgent syncAgent = new DemoTestSyncDataCacheSyncAgent();
    
    Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize();
    
    
    
    this.demoTestDataSet.Merge(this.demoTestTableAdapter.GetData());
    
    

    I'm sure I'm missing something horribly simple, but I just can't get the local data source to accept any changes.
    • Moved by Max Wang_1983 Thursday, April 21, 2011 1:33 AM forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
    Thursday, June 4, 2009 1:58 PM

Answers