Solved

Trouble creating Linked mySQL Server

Posted on 2009-04-04
6
1,342 Views
Last Modified: 2012-05-06
I am having trouble creating a linked Server.
I set a system ODBC to a mySQL server in the ODBC Data Source Administrator. It test ok.
But I can't figure out to make it a linked server in the Management Studio. I have:
PROVIDER: MediaCatalogDB OLE DB Provider.
DATASOURCE: myODBCname
What's PRODUCT NAME?

ERROR:
Cannot initialize the data source object of OLE DB provider "MediaCatalogDB" for linked server "myTest".
0
Comment
Question by:studioEtc
[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 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24067979
Try using sp_addlinkedserver in the format specified below

exec sp_addlinkedserver
     @server='MySQLServer',  -- This could be anything
     @srvproduct='MySQL',  -- This could be anything
     @provider='MSDASQL',  -- This MUST be MSDASQL for ODBC links
     @datasrc='MySqlODBC',  -- This should be the ODBC System DSN.
@provstr='DATABASE=mySql;DSN=MySqlODBC;OPTION=0;PWD=;SERVER=localhost;UID=root'
0
 

Author Comment

by:studioEtc
ID: 24068000
It created the linked Server but when I attempted top expand the tables folder I got:
The OLEDB provider "MSDASQL" has not been registered.
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24068054
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:studioEtc
ID: 24068094
I just figured out what's wrong (dummy me).
I created the ODBC on my local machine, but I want the linked server on the machine in our office. I'm working from home.  Is there anyway to do it without an odbc?
Jim
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24068118
Yes.. you can..
If you are using SQL Server 2000 SP3 or above, then try this one and this works fine

http://msdn.microsoft.com/en-us/library/aa276850(SQL.80).aspx
0
 

Author Comment

by:studioEtc
ID: 24068212
What I need to do is port  tables to a mySQL database.  OpenRowSet seems to be only for SELECT... But I did some looking around and found OpenDataSource which might do the trick.
 
Thanks form your help
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

624 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