Reputation: 519
What is the best way to copy a table from a SQL Server into a mysql server on a different machine? I need join the data between from the sql server onto the mysql server but just want to see if anyone had some better ideas than I do, which is currently at simply writing a script and copying the table row by row with inserts. SQL table is about 100k rows.
Upvotes: 4
Views: 10213
Reputation: 26474
You have a few options:
Which one is best depends to some extent on size of the record set and how much of it you need. My preference would be to use DTS and go from there.
Upvotes: 3
Reputation: 1
Many server administration tools including SQL Server Management Studio for Microsoft SQL server and phpMyAdmin include tools to export a tables content into another form such as XML,json, csv, and so on. They also allow one to import data from the same types of files. This would be the simplest route, especially with just one table.
Another option is an ETL tool. If you are familiar with Java you could use an open source tool such as Talend Open Studio for Data Integration to create jobs that can configure connections and a job that will automatically move or copy the data from one database to another, and also gives you more control if you need to filter or change any of the data along the way.
Upvotes: -1
Reputation: 481
You can try it with SQL Server Management Studio by using the Export Import Wizard.
In this case, you will use the SQL Server database table as the source, and the MySQL database table as the destination.
Upvotes: -1
Reputation: 563011
It would be better to do this using bulk export and import operations, instead of row by row.
Here are references to some relevant Stack Overflow posts that describe how to do each step:
Upvotes: 0