Sync Between SQL Server and MySQL Server

SQL Server sync to MySQL program

I finally used a program called Omega Sync. Now called Spectral Core Replicator.

Omega Sync can compare and synchronize both database schema and table data. Schema comparison and synchronization for databases of same kind
Data comparison and synchronization even for databases of different kind
Compare and Synchronize databases of unlimited size!

Supported databases

  • Access
  • SQL Server
  • MySQL
  • Oracle
  • Interbase
  • Firebird
  • ODBC sources

I am not associated with this company or product in any way.

SQL Server and MySQL Syncing

You can create a linked server instance in SQL Server, with the MySQL instance.

Despite being completely proprietary, one of the nice connectivity features offered in SQL Server is the ability to query other servers through a Linked Server. Essentially, a linked server is a method of directly querying another RDBMS; this often happens through the use of an ODBC driver installed on the server.

Refer This article : step-by-step process SQL Server Linked Server to MySQL.

Providing you grant the MySQL user you connect on behalf of proper permissions, you can write to the MySQL instance accouding to you. So you can update stored procedures to do an additional step to insert records into MySQL.

Much easier solution is to use commercial application - Omega Sync from Spectral Core
Omega Sync can compare and synchronize both database schema and table data. You can even synchronize data of heterogeneous databases (for example, compare your local SQL Server database with a MySQL replica on your web site - and synchronize all the differences in just a few minutes).

Easiest way to synchronize two databases

The architecture in-vogue right now is to send stock updates into a queue (Service Broker, RabbitMQ), and have a process that handles the message by updating both databases. I.e., your application doesn't make database changes directly, it just sends messages into the queue.

That can be a big jump, though, so if that's too much effort up front you can just put a trigger on the SQL database and have the trigger also update the MySQL database, assuming you can set it up as a Linked Server in SQL.



Related Topics



Leave a reply



Submit