Linked Server in SQL 2008 on Windows Server 2008

Posted on 2012-03-26
Last Modified: 2012-06-27

I have Local MS SQL Server which I need to link to a remote MySql Server.
I have a Linked server set up on my local PC linking the Local SQL to the remote MySql server.

We have installed a Windows Server running the SQL Server and now I can not get the Linked Server to connect.

The Error I get is "Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "TESTWEB".
OLE DB provider "MSDASQL" for linked server "TESTWEB" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)"

When I test the System DSN under Data Sources it tests fine.

I have set up these linked servers EXACTLY the same but the one on the local PC will connect and the one on the Windows Server refuses to.

Any Ideas??
Question by:p-plater
  • 3
  • 2
LVL 25

Expert Comment

ID: 37771661
You need TO change the PROPERTY OF the provider i.e. MSDASQL
Expand Providers -> Right Click MSDASQL -> Select Properties
Enable Nested queries
Enable Level zero only
Enable Allow inprocess
Enable Supports 'Like' operator

In SQL Server Surface Area Configuration:
Enable Local and Remote connections via TCP/IP and named pipes.Enable OPENROWSET and OPENDATASOURCE support.
LVL 35

Expert Comment

by:David Todd
ID: 37772632
Hi TempDBA,

How and where do you enable openrowset and opendatasource support?

LVL 25

Accepted Solution

TempDBA earned 250 total points
ID: 37775561
From Surface Area Configuration Manager:
-> Click Surface Area Configuration For Features
-> Check in the checkbox that asks for enabling openrowset and opendatasource support.

From T-sql:
sp_configure “show advanced options”,1

reconfigure with override

sp_configure “Ad Hoc Distributed Queries”,1

reconfigure with override
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.

LVL 35

Assisted Solution

by:David Todd
David Todd earned 250 total points
ID: 37775832
Hi TempDBA,

Thanks for that.

But this unless I'm mistaken is a SQL 2008 question, and SQL 2008 doesn't have a Surface Area Configuration Manager.

Instead in SSMS, in Object Explor, right click on server and select Facets.

In Facet drop-down box, select Surface Area Configuration.

In Facet properties set AdHocRemoveQueriesEnaboled to true.

Is this right?


Author Comment

ID: 37895039
Look at tonight
LVL 25

Expert Comment

ID: 37895407
        Thanks, I forgot about the removal of surface area configuration in 2008. Thanks again for correcting me.

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Introduction This article is intended for those who are new to PHP error handling (  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

895 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

11 Experts available now in Live!

Get 1:1 Help Now