Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have c# desktop application with MS-Sql server as back end. This desktop application will be running in two different systems (database will also be in local system), I want the data to be synced between these two systems bidirectionally.

For this I am able to generate JSON file for the differential data, now I want that JSON file to be transferred to the other system. On receiving JSON file, I can update and insert data to the database.

I am using .Net 4.0 and MS Sql 2008.

Please suggest me, how can I pass the JSON file from one system to the other system.

What I have tried:

Using node js , i created API to post the json data to cloud data base and api to download the json data. But I am not sure whether this is the right approach for this requirement.
Posted
Updated 12-Jul-23 22:02pm

If the systems are both on the same LAN or WiFi network, then Sockets in .NET - .NET | Microsoft Learn[^] is probably a good place to start.
 
Share this answer
 
Expanding on @OriginalGriff, you could use SignalR (Microsoft Learn)[^] for realtime updates. This would remove the need to be on the same local network and is a managed with typed support.
 
Share this answer
 

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