Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have 2 database in 2 servers but same in tables

inserting in table1 in database A (cloud server with static IP) with my website and inserting table2 in DB B (in local server without static IP) with my local application
now i need to write some code to sync those when in click sysn button in my local c# application

sync description:

DB_A.table1 With DB_B.table1
AND
DB_A.table2 With DB_B.table2

(Get from A.tb1 and insert in to B.tb1 and Get from B.table2 and insert in A.tb1 )

please help me how can i do that?

regards
Posted

1 solution

Hi
To do be honest for doing this work you have a lot solutions just try to goggling you will find amazing solutions like making mirror database, Ip forwarding or using web service (of course I like it this idea ;-) ) and I have a other solution for you that is Self-Synchronized Data Access Layer[^] in this article with small change you create self-Sychn mechanism for your application, just let me know if you need more information.

Other useful Links:
https://msdn.microsoft.com/en-us/sync/bb887608.aspx[^]
http://social.technet.microsoft.com/wiki/contents/articles/4654.sql-server-replication-technologies.aspx[^]
http://www.symmetricds.org/[^]
https://en.wikipedia.org/wiki/Microsoft_Sync_Framework[^]
 
Share this answer
 
Comments
Maciej Los 26-Apr-15 4:49am    
+5!

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