I'm building a C# program for windows tablets that are synchronized with a database. They will each have their own local .MDF
SQL Server database which they interact with using SQL Server Express.
However the users will take the tablets out of an internet connection and make changes. Then when one reconnects to the network which contains a "master copy" of the DataBase, I want to synchronize their .MDF
database with that. Then replace the database files of the computer and the tablet with the newly synchronized one.
I have a uniqueidentifier
column, and a datetime
of when that row was last changed, so if there were conflicts I'd just take the most recent change.
I've read some literature on this, but I'd love to see an explicit example or tutorial of how to do it. I know what I want is Merge Replication, and that Microsoft Sync Framework seems to have the functionality I want. I just am struggling to implement it. Alternatively, feel free to recommend a different tool to do it.
Thanks in advance!