I've 700+ MySQL queries and now trying to create same set of queries in MSSQL.
I want to generate MSSQL query with same MYSQL.Is any way to convert MYSQL query into MSSQL query.
From this article by Brian Swan, you can download the SQL Server Migration Assistant for MySQL tool and use it to convert a single MySQL query to a SQL Server query:
Create a Project: All the information you need for downloading SSMA, creating a project and connecting to databases is in steps 1-6 of this blog post.
In the MySQL Metadata Explorer, navigate to the Statements directory of your MySQL database:
SELECT post_title, post_date FROM wp_posts ORDER BY post_date LIMIT 5 OFFSET 5;
Note that SSMA will not successfully translate all MySQL queries, but it does for most. It does not translate some MySQL-specific functions (for example FOUND_ROW()
).