Solved

Trouble creating Linked mySQL Server

Posted on 2009-04-04
6
1,296 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
  • 3
  • 3
6 Comments
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:studioEtc
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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

763 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

7 Experts available now in Live!

Get 1:1 Help Now