Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I am creating a windows application which is communicating with a central database. But I need a local database too, which can store the application's data if the laptop is not connected to the network and the central database is not reachable. I also want the local database to sync with the central database as soon as a connection is established.

What I have tried:

I tried connecting the application with the central database and it worked seamlessly. But I couldn't find out how to create two databases and attach them user wise.
Posted
Updated 21-Aug-19 19:52pm

1 solution

That's because it's not trivial, not at all.
You have a lot of reading to do: Introducing the Microsoft Sync Framework: Next Generation Synchronization Framework[^] is a good start.
 
Share this answer
 
Comments
BillWoodruff 23-Aug-19 5:45am    
Hi, Is it possible MS no longer supports this: https://stackoverflow.com/questions/49149511/is-microsoft-sync-framework-alive

https://blog.bugrapostaci.com/2019/03/28/decommisioning-microsoft-sync-framework-1-0-sp1-runtime/
OriginalGriff 23-Aug-19 6:04am    
Yeah, they are apparently trying to push everyone to "Always On" via Azure, so support stopped a while ago.
Still works, though, apparently.
I've started looking at this:
(Better link): https://ampliapps.com/sqlite-sync/

(Original link): https://github.com/sqlite-sync/SQLite-sync.com
Which provides local / bidirection sync and is open source - but I've got little time to look at it in depth - there are a few projects I'd like to move to replication but keep putting off. Gotta bite the bullet sometime, but ... you know how that one goes, Bill!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900