简体   繁体   中英

Copying the data from MS SQL server to MySQL

I need to copy all the data from MS SQL server to MySQL server. I am planning to use the Quartz scheduler to perform this. This scheduler will run every night and move the data from MS-SQL-Server to MySQL server. Can anyone please tell if this is fine or is there any other better way to do this?

Update:
I need to transfer only one table with 40 columns (from MS SQL server to MySQL)

I wouldn't involve java unless I absolutely had to: java would be adding no value but would be adding extra complexity.

This is a "DBA" type task that belongs in a script scheduled with cron tab.

If I was implementing it, I would export the source database as an SQL script then import it by running it on the target.

I would recommend you to use http://www.talend.com for tasks like that.

UPDATE

Talend Open Studio for Data Integration is Opensource, there are some other features which are propietary details here

SQL Server Management Studio's "Import Data" task (right-click on the DB name, then tasks) will do most of this for you. Run it from the database you want to copy the data into.

If the tables don't exist it will create them for you, but you'll probably have to recreate any indexes and such. If the tables do exist, it will append the new data by default but you can adjust that (edit mappings) so it will delete all existing data.

I use this all the time and it works fairly well.

by- david

正如PbxMan所说,我将使用ETL,但我建议使用Pentaho( http://wiki.pentaho.com/display/EAI/Spoon+User+Guide ),对于这样的简单工作,我认为它要容易得多

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM