Solved

Importing data into SQL server 2008 R2 from MYSQL 5.5

Posted on 2014-03-18
6
1,619 Views
Last Modified: 2016-02-10
Hi,

I'm new to MYSQL and need to export data from MYSQL into SQL Server.  I have tried downloading a ODBC driver onto the machine however I get an architecture mis match message when trying to use SSIS to create the connection or using import/export method from SQL Server.

I have also tried using a linked server however get this message:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "CODA_IMPACT".
OLE DB provider "MSDASQL" for linked server "CODA_IMPACT" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)

Can you please advise what the best method is for this.  I am a SQL server DBA  and have very little experience of MYSQL!

Many Thanks in advance
Anita
0
Comment
Question by:ADhal37
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 18

Expert Comment

by:x-men
ID: 39936425
export to CSV and then import on SQL Server.

http://ariejan.net/2008/11/27/export-csv-directly-from-mysql/
0
 

Author Comment

by:ADhal37
ID: 39936544
Thanks! This is a very interesting post and I have learmt a few things regarding MYSQL.

Is there a direct way to do this?  We would like to avoid additional steps if possible, hwoever this is a very good alternative!

Anita
0
 
LVL 18

Expert Comment

by:x-men
ID: 39936557
if by "direct way" you meen automation, if you cant get the connectors to SSIS, and dont what or cant use / buy 3rd party apps. schedule the export on one side, to a share, and schedule the import on the SQL Server side.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ADhal37
ID: 39936585
Sorry, I meant, direct from MYSQL to SQL server via ODBC/Linked Server/SSIS etc.

I have tried following some posts on creating linked servers and ODBC connections but come across errors.  The closest we have got is my colleague using import/exprt tool and ODBC from SQL server and getting an error (see attached word doc.
errorimport.docx
0
 
LVL 18

Accepted Solution

by:
x-men earned 500 total points
ID: 39936604
on the import wizard, instead of chosing "copy from table..." choose "write a query"
0
 

Author Comment

by:ADhal37
ID: 39937440
that's briiliant! works now

Thanks very much
Anita
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question