I am using Microsoft Sync Framework 2.1 to sync Database instances. I have a query related to the following points:
-
Can I sync multiple SQLSERVERCe database instances with SQLSERVER instance at a time together?
-
Also if I have deleted a record using one on the SQLSERVERCe database instance and after that another one SQLSERVERCe database instance is updateing the same record.. how to deal with this scenario… ? what should be the record entry at SQLSERVER database instance?
-
Is there any any parent child relationship between SQLSERVER database instance and SQLSERVERCe database instance?
which provider are you using? SqlCeSyncProvider/SqlSyncProvider?
Assuming its the above:
Yes. If you however define one scope only, then the Sql Ce clients apps synching will have contention on the same scope_info row containing the sync knowledge. and they will also have contention the tables/rows being synched.
You’ll get a conflict. When the second client syncs, there is no record to update anymore and Sync Framework will raise a conflict (most likely ClientUpdateServerDelete)
If you used the providers above, there is no parent child relationship. the above providers work in a peer-to-peer fashion. you can even sync Sql Ce to Sql Ce.