x
login about faq Site discussion (meta-askssc)

ODBC Connection working, linked server fails

Hi,

We have two linked servers set up to connect to two different DB2 servers, which have been working without problems for years.

Since last week both the linked servers fail with the following error:

Cannot create an instance of OLE DB provider for linked server (Microsof SQL Error 7302)

However, the ODBC connections still succeed when you test it from Data Sources (ODBC), in other words there are no problems with the network or permissions.

I've also tried to recreate the linked server but it still fails with the same error message.

Any suggestions will be appreciated.

Thanks

SQL Server 2005 Windows Server 2003 IBMDADB2 driver

more ▼

asked Mar 28 '11 at 01:54 AM in Default

MagdaMong gravatar image

MagdaMong
11 1 1 1

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

This IBM Technote suggests setting the option Allow InProcess on the provider in SQL Server. I don't know if this is something that has changed with service packs and/or patches (you say it has been working before). But it might be worth testing. I'm using DB2Connect, so I'm not too familiar with this driver.

http://www-01.ibm.com/support/docview.wss?uid=nas10366ef927408bcff862572bc00761f57

more ▼

answered Mar 28 '11 at 02:21 AM

Magnus Ahlkvist gravatar image

Magnus Ahlkvist
13.7k 13 17 30

Thank you for your reply.
Allow inprocess is checked.

Mar 28 '11 at 02:23 AM MagdaMong

How did you setup security for the Linked Server connection? Which login are you using to connect to SQL Server? Which service account is used for the SQL Server services? Did any of this information change recently?

Mar 28 '11 at 02:31 AM Magnus Ahlkvist
(comments are locked)
10|1200 characters needed characters left

The problem seemed to be with SQL Server itself, we installed SQL Server 2005 SP4 and that seemed to resolve the problem.

Thank you for your assistance

more ▼

answered Mar 28 '11 at 11:44 PM

MagdaMong gravatar image

MagdaMong
11 1 1 1

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1834
x92
x34

asked: Mar 28 '11 at 01:54 AM

Seen: 1424 times

Last Updated: Mar 28 '11 at 01:54 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.