Skip to content
Advertisement

Export MySQL Database from HeidiSQL to SQL Server. Problem with simple quotes

I have a remote MySQL DB in a hosting that I need to export to my local SQL Server. I use Heidi SQL to connect the DB and I use the Export to single .sql file The problem is that the DB is 5GB and the .sql file is 2.3GB. So I can’t open the .sql with SSMS because it says that the file is to big. So I try to run the command sqlcmd on console >sqlcmd -S localhostSQLEXPRESS -i “C:backupfile.sql” but it fails because of the simple quotes:

It should not be this extrange quote (“) it should be normal quote (”). Is there a way to generate the .sql script from Heidi with normal quotes so I can execute it in the cmd?? I can’t change manually with crt+f because I can’t open the 2.3GB file

Advertisement

Answer

The SQL syntaxes differ between MySQL and SQL Server. When trying to use direct database dump, you will likely have other incompatibilities as well.

Try using the Microsoft SQL Server Migration Assistant for MySQL instead.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement