Solved

Can't create MySQL Connection Manager for BIDS 2012 project

Posted on 2014-09-24
3
601 Views
Last Modified: 2016-02-13
I am trying to read data from a MySQL database by creating an SSIS package in BIDS (MS Visual Studio). Here's the environment:

Development Machine is Windows 7 64 bit.
MS Visual Studio 2012
MySQL Version 5.0.80
MySQL ODBC 5.3 ANSI Driver version 5.03.04.00 or MySQL ODBC 5.3 Unicode Driver version 5.03.04.00

I was able to create a System DSN and a User DSN both of which test successfully when I use Test Connection button on ODBC dialog. I believe I created both DSNs from the Administrator Tools Data Sources (ODBC) program. I've seen references about having to use the 32 bit version and I've run c:\windows\syswow64\odbcad32.exe but it just opens the same interface and both DSN appear.

Attempt using ODBC provider:
1. Create a new Connection Manager from BIDS
2. Select ODBC manager type
3. Configure ODBC Connection Manager dialog appears. I click New
4. The Provider drop down says ODBC and is disabled.
5. I select the User DSN (The System DSN doesn't appear) and enter the user name and password and press Test Connection.
6. I get an error that the connection failed ERROR [IM014][Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.


Attempt using ADO.NET provider:
1. Create a new Connection Manager from BIDS
2. Select ADO.NET manager type
3. Configure ADO.NET Connection Manager dialog appears. I click New
4. I select .Net Providers\ODBC Data Provider.
5. I select the User DSN (The System DSN doesn't appear) and enter the user name and password and press Test Connection.
6. I get an error that the connection failed ERROR [IM014][Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.

I tried both of the above methods by entering the connection string directly (specifying server, port, database, uid and pwd) but that results in an error stating "The ConnectionString property has not been initialized".

I'm at a loss as to what to try next.

Thanks for your assistance.
0
Comment
Question by:ZekeLA
[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
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 40343210
Make sure both are on same platform (32 or 64 bit).

Here, if driver is not available then Download and install drivers  (32 or 64 bit).
0
 
LVL 1

Author Comment

by:ZekeLA
ID: 40350529
Still no luck but here's what I tried"

1. I checked the source MySQL database and according to MySQL Workbench 6.1 Server Status, my source is compiled for Win64. So I assume both need to use 64 bit.
2. I uninstalled all of the MySQL drivers.
3. I rechecked MySQL documentation and downloaded MySQL Driver for Connector / ODBC version 5.2.7 (http://dev.mysql.com/downloads/connector/odbc/5.2.html) since other documentation says it supports MySQL 4.1 and later while ODBC version 5.3.4 said MySQL 5.5 and later. (http://forums.mysql.com/read.php?3,614123,614123#msg-614123 and http://forums.mysql.com/read.php?3,617691,617691#msg-617691)
4. I created a new User DSN using %systemdrive%\Windows\System32\Odbcad32.exe which should generate 64 bit DSN. (http://support2.microsoft.com/kb/942976)
5. I repeated my attempt to create a new ODBC connection manager. And I got the same error as before: Architecture mismatch.

Suggestions?
0
 
LVL 1

Author Comment

by:ZekeLA
ID: 40350861
Finally got it. There were two issues:

1. The source is 32 bit, not 64 bit as MySQL Workbench seemed to indicate.
2. The original driver I downloaded was either the wrong version (5.3.4) or the wrong OS (64 bit). Per MySQL documentation, version 5.3.4 is for MySQL 5.5 or later but the error message was architecture mismatch.

Correct solution was to uninstall previous attempts and download 32 bit version of MySQL ODBC 5.2.7 driver. I was able to connect with a User DSN.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

734 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