Good tool for converting mssql queries to mysql queries - mysql

I found alot of question on stack about converting mysql to mssql, but i would like to convert it otherwise.
From mssql server to mysql.
is there a (free) tool for this to do that without connecting to the databases?
i have an sql query dump and i want to convert that by putting that code in an tool.
Thanks.

You're probably best off doing this yourself to ensure everything is correct rather than relying on a third party tool (Also the additional benefit of understanding the differences between the two pieces of code). However you could use this SQL to MySQL tool:
http://download.cnet.com/SQL-To-MySQL-Converter/3000-10254_4-75693763.html

Related

Not able to convert METABASE QUESTIONS to sql query for mongodb

I am using metabase as BI tool for our analytics and my current database is in mongodb. I am able to create questions in metabase but when I try to join collections or try to do some complicated operations then I am not able to do that without writing in native query.
Is there any way to write sql queries for mongodb operations in metabase ? Or is there any other way around without using square and curly brackets for native query. And if I try to do with sql I get following error.
You can't. Since MongoDB is NoSQL you simply can't use SQL.
You can use the MongoDB native query language within Metabase.
Or you can wait for Apache Drill or Apache Spark SQL support:
https://github.com/metabase/metabase/issues/2157
Both solution would allow you to query MongoDB using SQL.
There is indeed limitation on metabase. However, I have helped our customer solve similar problems like yours. The software architecture is like this:
Metabase -> Presto SQL/Trino -> the data source that does not support SQL
In this design:
Metabase handles the dashboard part of work.
Trino translate SQL to
the query language that the data source can understand.
Note: In our customer's case, the integration really requires certain programming work. It is not a quite trivial job.

Sql server migration to mysql

I have a mssql dump script test.sql with store PROCEDURE how can I convert it to MYSQL sql file.
I checked Sqline but it gives alot of error.Any help should be appreciated.
MySQL Workbench has migration capabilities. There are also 3rd party tools for database migration (e.g. https://dbconvert.com/mssql/mysql/?DB=6) and script conversion (e.g. http://burrist.com/index.php/ms-sql-server-to-mysql-conversion/).
Note that migrations of any kind can be tricky. Syntax is relatively easy but semantics can trip things up without you realizing it. Evaluate the tools carefully to determine which one provides the best/most help. It's rare for automated migrations/conversions to be 100% complete or accurate even if you have a very simple schema and are using ANSI standard SQL only (each vendor supports a varying level of ANSI standards). Test, test, test.

How to use the generated script from SQL 2005 to MYSQL?

We are converting our database to MYSQL from MSSQL 2005.
Someone told me this is possible by generating a script in MSSQL using Database Publishing Wizard. I already created a script. Then by dragging it to the Query Writer in MYSQL. I am currently using SQLyog for creation of database.
How can I use that script to create a MYSQL file?
I also tried to use demo versions of converting tools but to no avail.
Please help me. =)
There is no simple or quick way to do a task like this. THe two database have differnt syntax and differnt datatypes, etc. I certainly would not trust a converting tool as you may want to make changes to fix bad design choices in SQL server to better choices in MYSQL.
Take your script and then run each section and find where it fails and then look up the correct syntax for mySQL and fix it.
Here is alink to a book you need to have for this conversion project as it wil show the syntax differnences:
http://www.amazon.com/SQL-Nutshell-OReilly-Kevin-Kline/dp/0596518846/ref=sr_1_2?s=books&ie=UTF8&qid=1330382519&sr=1-2

Best Way to move an Existing MsSQL database to MySql?

Whats the best method and or tools to move a MsSQL database to MySQL ?
Please be as literal as possible as I have limited experience with databases and next to none with moving them.
MySQL itself offers a Migration Toolkit, which - in my experience - works rather well, not only with SQL-Server, and is as easy as it can get.
Documentation: http://dev.mysql.com/doc/migration-toolkit/en/index.html

Migration from Oracle to MySQL or PostgreSQL

I want to migrate the data source of my Java web application from oracle to either MySQL or PostgreSQL. Oracle database size is huge and contains Large objects as well. Please suggest which would be the better choice? Please explain with some issues, example and points.
PostgreSQL is much more similar to Oracle than MySQL is. Significant difference still exist, but you'd probably find it to me an easier migration, and more similar behaviour by the database.
Large objects as BLOB might give you some problems as Oracle has some vendor specific implementation which is often used in Java code. I.e check you import statements where BLOB is used. For some more see here: http://www-css.fnal.gov/dsg/external/freeware/mysql-vs-pgsql.html