Database Synchronization in WPF RRS feed

  • Question

  • I am facing some problems in database synchronization.

    I have created the 'LocalDataCache1SyncAgent' which is the agent. Using this I am specifying the clientdatabse (.sdf file) and server database( .dbo sql server).I added the tables which are needed to be synchronized. I am using the following code for accomplishing the synchronization

    LocalDataCache1SyncAgent syncAgent = new LocalDataCache1SyncAgent();

    syncAgent.clientAdmissionHistory.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional;

    Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize();

    In one way synchronization working fine. After synchronizing only changes from client to server is working. I mean if i am doing any changes in

    client database this changes will be reflected in the server database using the above code. But no changes is effected from server to client.

    SO could you please help me to get the solution with code?
    Wednesday, April 20, 2011 11:21 PM


All replies