Migrate some data from MySQL to MSSQL - mysql

I have a MySQL database.
I need to migrate some (not all) table's data (data records) from MySQL to MSSQL database, herewith convert structure of MySQL tables to new structure in MSSQL.
In future, I need to do automatic periodical synchronization between these databases.
Is there any tools? or I have to use some SQL proc's or queries? How can I do these things?
For reference: I'm using MSSQL Server 2008 R2 with ODBC driver for MySQL and SQL Migration Assistant for MySQL (with these tools, I have been fully converted MySQL to MSSQL database only).

Since you already have full SQL 2008, open the Visual Studio Intelligence BI installed with your SQL installation.
Then create a new project "Integration Services Project".
Therefor you create a new connection to your ODBC (should be wizards available).
Then add your tables, there you can modify, convert, tranasform the data.
The complete project you can save and add as sheduled task to your sql server agent.
Here is a tutorial which explains more: http://msdn.microsoft.com/en-us/library/ms169917.aspx

Related

Link and export data from Azure SQL table to my SQL table

Is there any possibility to export and create a link between one of the table from Azure SQL DB to the table in MySQL DB?
Firstly, you can migrate data from SQL server to your MySQL database. And there are many ways can help you achieve that. You can reference this blog :How to migrate SQL Server database to MySQL?.
But for Azure, you could not copy or migrate data from Azure SQL database to your on-premise MySQL DB, even with Azure Data Factory. Azure Data Factory only support MySQL as source server.
Secondly, You want to sync the data between Azure SQL database and your MySQL database. Azure SQL Data Sync only support Azure SQL Database and on-premise SQL Server instance.
This means that Azure could not help you migrate or sync data from Azure SQL data base to MySQL DB. You have to use third-party tools.
One of the ways is you can use MySQL Workbench Migration tool. Database migrations - enables migrations from Microsoft SQL Server, Microsoft Access, PostgreSQL, Sybase ASE, Sybase SQL Anywhere, SQLite, and more.
There are many tools to perform the migration from MS SQL Server to MySQL like Amazon DMS or Data Integration (Kettle), but in this case, we’ll use the MySQL Workbench Migration tool.
Please reference this tutorial: How to Migrate from MSSQL to MySQL.
Hope this helps.

How to load data from MySql to MS SQL Server database?

I have similar schema in both MySQL and MSSQL Server databases. How can I migrate just the data from MySql to an empty (no data) MSSqlServer database? MSSqlServer DB is empty with just the schema. I could not configure the MySql DB as a linked server (through ODBC) since I don't have DB Admin rights on MSSqlServer. I just have previleges to add data. I explored Sql Server Migration Assistant for MySQL, but I just want to migrate data without touching the schema at the target.
I also noticed that there is a SqlBulkCopy class which helps to programatically migrate data in .NET.
But I need to write code for each table (there are more than 100 tables and 20 GB of data).
What is the most elegant way to do it?
SSMA might be the easiest. Since you don't wanna use that, you can try using mysqldump. You can use it to essentially dump a MySQL db to SQL Server.
Link to the SSMA blog, they update these tools regularly, so check for a later version. SQL Server Migration Assistant (SSMA) Team's Blog

MySQL dump to SQL Server 2008 R2

I recently redid a project for my company, and have to convert existing MySQL data to a SLQ Server 2008 R2 database.
I have a dump script from the old MySQL database, but it contains a helluva lot of data.
I was wondering if there are any solutions out there to feed the dump file to, and receive a SQL Server 2008 R2 script.
Any help would be appreciated.
Microsoft provides a free migration solution you maybe want to use
Microsoft SQL Server Migration Assistant (SSMA)
The free Microsoft SQL Server Migration Assistant (SSMA) makes it easy to migrate data from Oracle, Microsoft Access, MySQL, and Sybase to SQL Server. SSMA converts the database objects to SQL Server database objects, loads those objects into SQL Server, migrates data to SQL Server, and then validates the migration of code and data.

how to import database created in microsoft sql server 2005 to MySql server 5.0

I have created database in microsoft sql server 2005 can i use that particular database in mysql server 5.0 .
There is no common way to perform such kind of migration because of much of differences between these two RDBMS.
The quick suggestion can be: export you MSSQL database into SQL file, open it via favorite text editor, remove MSSQL specific instructions, and load into MySQL using mysql console tool.
This way should be OK for non-complex databases without complex constraints, foreign keys and stored procedures.
Otherwise, you'll need to rewrite these type of database artifacts using MySQL dialect.

I need to convert my Mysql database to SQL Server 2005 database

I need to convert my Mysql database to SQL Server 2005 database, Is there any tools available for this conversion.
I will suggest a generic, standards-based, platform-independent approach, applicable to any two databases. Taken streight from an answer to another question, you can use any of the following tools:
SQL Workbench, using the WbCopy command
an ETL tool, like Pentaho Data Integration
DDLUtils
All of these will allow you to tweak the migration process to some degree (e.g. batch size).