Synchronize data of tables with the same table structure from 2 different databases

In the past few days, because the work needs to synchronize the data of the database, by the way, I have studied the data of synchronizing the table structure from two different databases.


Some information on the Internet seems to be very complicated

I organized and wrote a simple (regardless of performance) synchronization tool, and shared the problems encountered in the process of table synchronization. Please refer to the following code for details.

ps: If you need other database support, please use dbfactory to create an adapter and commandbuilder to achieve (the implementation process remains unchanged), this article does not involve multi-database support


Retrieval keywords: sqldataadapter Synchronize the data of 2 tables Synchronize the data of 2 tables Mirror clone the data of one table to another table Synchronize the data of 2 tables but do not delete the data




Guess you like

Origin blog.csdn.net/DeleteElf/article/details/8735921