Solved

Trouble creating Linked mySQL Server

Posted on 2009-04-04
6
1,323 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
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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

821 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