Solved

Importing data into SQL server 2008 R2 from MYSQL 5.5

Posted on 2014-03-18
6
1,582 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
  • 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now