Link to home
Start Free TrialLog in
Avatar of Software Programmer
Software Programmer

asked on

Conversion of MS SQL Server DUMP to MySQL

I have a SQL server DB dump and need to convert to a MySQL database DUMP or import in MySQL database.

Which tool is the open source and most suitable for this conversion ?

We don't have sufficient space or memory to install or import SQL server in our machine. However we have the MySQL installed.

Please advise.
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

If you have a SQL file already exported from MSSQL, you may be able to simply import it into MySQL by running the script:
mysql my_database < /path/to/file.sql

Open in new window

If you're using more advanced features from MSSQL, they will not translate properly to MySQL.  You could edit the file manually to correct the syntax or feature references.  With a good text editor, that is a pretty simple process.

If you still have access to the running MSSQL server, you might try the MySQL Workbench.
How was the "MS SQL Dump" created ?
Avatar of Software Programmer
Software Programmer

ASKER

through Backup option in SQL Server Management Studio. The file is named as test.bak
Microsoft's .bak files will not import into MySQL as-is.  You will need to extract the database(s) from the file, then either export as SQL or import via ODBC using software such as MySQL Workbench.
Do you know any open source conversion tool which converts .bak to .sql ???? which extracts the data and structure and converts to mysql equivalent ???
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.