Solved

Importing data into SQL server 2008 R2 from MYSQL 5.5

Posted on 2014-03-18
6
1,612 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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Many to one in one row 2 40
Returning Message/Value Back to Access from a SQL Server trigger 3 35
How to use 2 ON statements in inner join 3 27
Need SSIS project 2 30
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how the fundamental information of how to create a table.

726 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