Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL to SQL Server transferring data

I need to convert data that already exists in a MySQL database, to a SQL Server database.

The caveat here is that the old database was poorly designed, but the new one is in a proper 3N form. Does any one have any tips on how to go about doing this? I have SSMS 2005.

  1. Can I use this to connect to the MySQL DB and create a DTS? Or do I need to use SSIS?
  2. Do I need to script out the MySQL DB and alter every statement to "insert" into the SQL Server DB?

Has anyone gone through this before? Please HELP!!!

like image 617
andrewWinn Avatar asked Dec 02 '09 20:12

andrewWinn


People also ask

Can MySQL connect to SQL Server?

To migrate MySQL databases to SQL Server, you must connect to the target instance of the SQL Server. When you connect, SSMA obtains metadata about all the databases in the instance of SQL Server and displays database metadata in the SQL Server Metadata Explorer.

How do I transfer data from one SQL database to another?

Steps that need to be followed are:Launch SQL Server Management Studio. Select and right-click on the Source Database, go to Tasks > Export Data. Import/Export Wizard will be opened and click on Next to proceed. Enter the data source, server name and select the authentication method and the source database.


1 Answers

See this link. The idea is to add your MySQL database as a linked server in SQL Server via the MySQL ODBC driver. Then you can perform any operations you like on the MySQL database via SSMS, including copying data into SQL Server.

Congrats on moving up in the RDBMS world!

like image 117
3Dave Avatar answered Oct 23 '22 22:10

3Dave