Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to transfer Data automaticly between MySql and Sql Server back and fourth?

I need to build a procedure to read data from SQL Server and insert it into MySql. More I also need another procedure to read data from MySql Server and insert it into SQL Server.

I never done such a thing. I can't think of a way to get it done. Can someone tell me how can I do so such a thing?

I appreciate at least an idea where I can search it.

I have been googling this but did not find much of help.

I have Scribe software I am not sure if there is a future in Scribe that can help me with this?

Note this procedure Will be automatically run so transfer data or receive data from the source.

like image 653
Mike Avatar asked Jun 07 '13 01:06

Mike


People also ask

How do I migrate from MySQL to SQL?

On the File menu, select New Project. Enter the project name and a location to save your project and the migration target. Then select SQL Server in the Migrate To option. In the Connect to MySQL dialog box, enter connection details, and then connect to your MySQL server.


1 Answers

The best way to achieve this is to create a Linked Server in SQL Server, this way you can query both SQL Server and MySQL from the same place. You can write a stored procedure to access both or a Job to run on specific schedule.

Update: Sample INSERT Query

INSERT OPENQUERY (SERVNAME, 'SELECT subject, notes FROM cms.mysql_table') 
SELECT subject, notes FROM sql_server_table
like image 72
Yuriy Galanter Avatar answered Oct 20 '22 00:10

Yuriy Galanter