MSSQL to MySQL

Convert a SQL Server export into a MySQL SQL file. Review conversion warnings before importing.

Your file is uploaded, processed, then deleted. Results expire after 1 hour.

Updated

SQL Server → MySQL.sql only · Up to 20 MB

Enabled by default. Turn this off only if the destination uses NO_BACKSLASH_ESCAPES and you have checked the output.

This converter supports selected SQL Server export patterns. Unsupported statements may be omitted, and triggers need manual conversion. Review the output and test it on a separate database before importing.

SQL is converted as text, never executed.
Private processing · No sign-up · Results expire after 1 hour

How to use MSSQL to MySQL

  1. Upload one UTF-8 .sql export from Microsoft SQL Server.
  2. Choose the backslash handling option and convert the file.
  3. Review the report, download the MySQL SQL file, and test it on a separate database.

MSSQL to MySQL at a glance

Typical use: Prepare a SQL Server export containing table definitions and INSERT statements for review and testing in MySQL.

Conversion is one-way: SQL Server to MySQL. The script handles selected export patterns, not every SQL dialect feature. Triggers require manual conversion; unsupported statements can be omitted. SQL is never executed on this website. Files are limited to 20 MB and results expire after one hour.

What it converts

Upload a SQL Server (MSSQL) export to get a MySQL version of it. The converter handles selected export patterns: table definitions, keys and indexes, identity columns and INSERT statements, with or without GO separators.

Bracketed names such as [dbo].[users] and SQL Server-specific syntax are rewritten for MySQL. Triggers are marked for manual conversion, and statements the converter does not recognise are listed in the report rather than silently changed.

Before you import

Treat the output as a draft. Read the report, search the SQL for TODO markers, and import it into a separate test database first. Check row counts and a sample of records against the source.

The output can include DROP TABLE statements, so never run it against a database you cannot afford to lose.

Frequently asked questions

Is my SQL executed?

No. The file is converted as text. No SQL is run and no database is connected.

Does it convert stored procedures, views and triggers?

Not automatically. Triggers are marked with TODO comments, and other unsupported statements are listed in the report for manual conversion.

What does the backslash option do?

MySQL treats backslashes in strings as escape characters by default, so the converter escapes them. Turn it off only if your MySQL server uses NO_BACKSLASH_ESCAPES.

Can it convert MySQL to SQL Server?

No. Conversion is one-way, from SQL Server to MySQL.

What are the limits?

One UTF-8 .sql file up to 20 MB. The result and report expire after one hour.