Migrate Data and Schema from MySQL to MSSQL

Posted by colithium on Stack Overflow See other posts from Stack Overflow or by colithium
Published on 2010-03-19T05:34:14Z Indexed on 2010/03/19 5:41 UTC
Read the original article Hit count: 258

Filed under:
|
|

Are there any free solutions for automatically migrating a database from MySQL to MSSQL Server that "just works"?

I've been attempting this simple (at least I thought so) task all day now. I've tried:

  1. MSSQL Server Management Studio's Import Data feature
  2. Create an empty database
  3. Tasks -> Import Data...
  4. .NET Framework Data Provider for Odbc
  5. Valid DSN (verified it connects)
  6. Copy data from one or more tables or views
  7. Check 1 VERY simple table
  8. Click Preview
  9. Get Error:

The preview data could not be retrieved. ADDITIONAL INFORMATION: ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.45-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"table_name"' at line 1 (myodbc5.dll)

A similar error occurs if I go through the rest of the wizard and perform the operation. The failed step is "Setting Source Connection" the error refers to retrieving column information and then lists the above error. It can retrieve column information just fine when I modify column mappings so I really don't know what the issue is.




I've also tried getting various MySql tools to output ddl statements that MSSQL understand but haven't succeeded.

I've tried with MySQL v5.1.11 to SQL Server 2005 and with MySQL v5.1.45 to SQL Server 2008 (with ODBC drivers 3.51.27.00 and 5.01.06.00 respectively)

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql-server