Conversion from Microsoft SQL Server to MySQL - mysql

How do I convert a Microsoft SQL Server database backup file such that to import in MySQL database? Is there any way or free tool available for this?

Not sure about how complex a database you have, but if its just some tables and data, there is a free script here that will automagically convert Microsoft SQL Server tables and data over to MySQL.
If you need something more sophisticated, then MySQL has a migration toolkit which allows you to migrate from Microsoft SQL Server to MySQL. In addition here is a tutorial on how to use it. Note that this has now been discontinued, in favor of MySQL Workbench, which has data migration built in.
In addition, this converter will convert everything except stored procedures from MSSQL to MySQL, for a price of only $50 which isn't bad.
Also you may want to check out this whitepaper from MySql's website on how to plan a migration from SQL Server to MySQL, as well as some resources.

ms2my (Pre-Alpha, free)
http://sourceforge.net/projects/ms2my/
"A tool that helps with MSSQL to MySQL converting/replicating (both csv&dump) under *nix.Possible to use it with crontab for regular data fetching.Keeping mySQL-based data warehouse refreshed could also be one of the possibilities of using this script."
MSSQL to MySQL Converter (free trial download, for purchase $49)
http://www.convert-in.com/mss2sql.htm
I've looked for quite awhile, and if you don't want to try ms2my, the above is about the only other option. And it isn't free.
Best of luck finding a free one, hopefully there is one that is hidden away out there on the internet that I can't find.

If you are using a living MS SQL Server and a living MySQL server, then I think your best AND MORE ACCURACY option is to use an ETL/data transformation tool like Pentaho Data Integration (Kettle).
With Kettle you can visually design (using easy-to-learn data flow steps) almost any data transformation from single/multiple data source(s) to single/multiple data destination(s). One of the features you may be interested is the database/tables migration wizard.
If the community distribution of Kettle is not enough for you, then you can use the Enterprise Edition with more features, support, etc.

Take a look at Omega Sync it supports export import and synchronisation between different DBMS's including Schema and table data.

Related

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 get tables, views, etc.. in mysql database server from a firebird database server

There are two different database servers in different platforms; MySql and Firebird.
I need to get db tables from Firebird server (synchronously or not synchronously) to MySql server.
Timing is not that important.
How do I achieve to get, for example; simply a specific database table from Firebird server to Mysql server?
İt will be very helpful if any ideas come, thank you..
So essentially you would need to develop some sort of process that will extract then transform and load the data from FireBird into MySQL. The problem is that both firebird and MySQL does not have real ETL tools included in them by default. MSSQL has for example SSIS. Since you cant access FireBird directly from MySQL code you will need some external tool to do the job.
Thus you will either have to code this tool yourself or use a open source tool.
There are several ETL tools that are open source and for free that you might want to investigate such as Pentaho, CloverETL see this link for more information.
You told you already found a solution to import CSV into MySQL. So the missing piece is Firebird CSV export
Well, those three words entered into Google give you immediate top result as the free FBExport tool. See http://www.firebirdfaq.org/fbexport.php

Can I copy my MySQL database structure to MS Access pre 2007?

I want to create a desktop version of my mysql installation without having to setup a server on my machine.
I want to make use of MS Access' query designer so I can produce complicated queries.
I know I can produce an SQL file but I've no idea how to create an MS Access database from it ?
I'm not going to jump on the "Access sucks" bandwagon, though it can be very frustrating at times.
Worst case, You can start with a blank Access database (mdb file, since you specified pre-2007). Open the query designer & go to SQL view. Paste in one complete SQL statement (CREATE TABLE...), and run it. Fix any incompatibility errors, paste in the next (replacing the first), rinse, repeat. Be sure to do this in such order that any dependency "sources" get created before the dependents.
There may be a batch process available, but I don't know what it is offhand.
Moving from MySQL to something like Access is heading in the wrong direction.
If you need a server-less SQL installation or package as part of your distribution (which is a pretty common requirement these days since admins don't like users to install database servers on their machines), consider SQL Server Compact Edition (CE) or SQL Lite. They're both fully SQL compliant (unlike Access) and will cause you far fewer headaches than Access (which sucks). (Did I mention that Access sucks? Big time?)
SQL CE is a .NET assembly that runs in-process with your app, and is very easy to work with. Also, db objects you create will be upwards-compatibile with the full-blown SQL Server. It also works very, very well with Entity Framework if you're into ORMs.
I've heard praise for SQLite, but haven't worked with it. If you're not on .NET, this should be a good way to go.
Links:
SQL CE
SQLite
I don't know if this is a viable option, but if you can set up a DSN to point to your MySQL server, you can then use FILE | GET EXTERNAL DATA | IMPORT to import your MySQL tables into a blank MDB/ACCDB. It's a one-time operation, but I don't know that there's any other option here. You should get the option to import the table schema only and not schema+data. You may have to tweak data types in the resulting tables, since the MySQL data types won't necessarily map directly to Jet/ACE data types.
Then you can carry the MDB/ACCDB file anywhere you want.

export from Oracle into SQL Server or mySQL

Is there a standard or recommended method of exporting the data from an Oracle DB into a SQL Server or mySQL database? Was thinking exporting the Oracle data into XML then importing the XML into SQL Server...or this recommmened?
Thanks,
If you were moving house from the USA to Canada would you go via Japan?
While the differences between Oracle and other SQL rDBMS are even more pronounced that the differences between other SQL rDBMS, the shortest route seems to be from one database to database. I'd go with exporting the schema in SQL DDL to a text file so it can be manually tinkered with, then use a program to move the actual data across - e.g. using odbc links. I reckon the latter could be written in about 100 lines of code assuming that its not available off the shelf.
Alternatively, since you don't seem to have decided on a DBMS yet, you might want to have a look at Enterprise DB (based on PostgreSQL) which comes with tools for migrating from Oracle.
C.
My advice:
always make an export so you can re-import (with IMP) into oracle again. EXP documentation: http://wiki.oracle.com/page/Oracle+export+and+import+
use a tool like Data Architect to migrate the schema (http://www.sqlpower.ca/page/architect). This tool allows you to import the structure of the Oracle DB, and then make a comparison with a target schema. It can then genereate and/or execute a script to reconcile structural changes. Although this will help you define the table DDL and indexes (and unique constraints and primary key constraints) you will most certainly need to manually modify the target model. Choosing the right data type is always something you need to consider - i disrecommend automated data type mapping. Foreign keys can be a challenge too when going to MySQL. For that particular case you need to ensure you are moving the data to InnoDB tables.
use a tool like kettle aka pentaho data integration (http://kettle.pentaho.org/ download here http://sourceforge.net/projects/pentaho/files/) to actually move the data. kettle includes a wizard to copy all table contents. I believe data architect can do migration too, but I prefer using kettle
These EXP/IMP tools are part of oracle. They are in the bin dir of your oracle server install.
The other tools are FOSS - (free software)
Another tool that might help you is Oracle's own SQL developer

Recommendations on a sql comparison (schema & data) tool that supports both Oracle and SQL Server?

I'm trying to find a good tool (open source or commercial) for doing comparisons of database instances, for example:
Compare 2 database schemas; generate platform specific change script (either direction) to bring one into synch with the other
Compare data (table contents), generate platform specific change script (either direction) to bring one into synch with the other
Migrate an entire database schema + data from one platform to another, ie: port an Oracle database to SQL Server (hopefully including support for sequences and identity columns)
For 1 & 2 above, by platform specific I mean the script native to the specific database platform, not, for example, an ODBC equivalent script.
Personally, I am mainly concerned with SQL Server and Oracle support, but MySQL support would be very nice to have as well.
Quest Toad or Red Gate SQL Compare would be the most likely options.
I'd give a try to "SQL Server Migration Assistant for Oracle (SSMA for Oracle)"
http://www.microsoft.com/sqlserver/2005/en/us/Migration-oracle.aspx
It will be really useful to you for points 1 and 3.
I used it with some data migration work, and although it didn't solved everything by itself, it really saved me a lot of time.
I'd like to clarify Red Gate's position. Schema Compare for Oracle is now available. For those who have used SQL Compare (for SQL Server), this tool will be very familiar. MySQL Compare also exists.
http://www.red-gate.com/Products/schema_compare_for_oracle/index.htm
ER/Studio , see http://www.embarcadero.com, will do most of what you're looking for, except for the data comparison. It is pricey however.