SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Cannot create an instance of OLE DB provider for linked server


Cannot create an instance of OLE DB provider for linked server

Author
Message
sachinbb
sachinbb
SSC-Enthusiastic
SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)SSC-Enthusiastic (180 reputation)

Group: General Forum Members
Points: 180 Visits: 113
Hi all,


When i log in to my SQL Server Management Studio with windows authentication

and

try to run a stored procedure (stored procedure pulls data from a linked server)

I get this error:

Cannot create an instance of OLE DB provider for linked server

provider name is: IBMDADB2

How can i fix this so that my query will run the Stored procedure and return data?

Thanks,

Sach
Steve Sutter
Steve Sutter
SSC Rookie
SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)SSC Rookie (37 reputation)

Group: General Forum Members
Points: 37 Visits: 6
Just thought I would post this much after the fact to get the info out in webspace for when I forget it next time...

Had the same problem setting up a Linked Server for Informix:
Cannot create an instance of OLE DB provider "Ifxoledbc" for linked server [...]

The solution was to follow the advice scattered about out there:

1. In SQL Server Manager, go to the Provider folder under the Server Objects folder and set the "Allow inprocess" box on the appropriate driver's properties
2. On the Server machine invoke the Component Services located at the Control Panel/Administrative:
• Expand Computer Services/Computers/My Computer/DCOM Config.
• Locate MSDAINITIALIZE and Right-Click on it.
• Click on the Security Tab.
• In the "Launch and Activation Permissions" click on "Customize", then click Edit.
• Add the users or appropriate group and check all permissions (Local Launch, Remote Launch, Local Activation, Remote Activation).

Good Luck!
wcbrown45
wcbrown45
SSC-Enthusiastic
SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)SSC-Enthusiastic (185 reputation)

Group: General Forum Members
Points: 185 Visits: 108
I experienced the same issue, and the setting above seemed to do the trick.

THe think I'm curious about is why was it that I would get error messages sporadically, and not consistently as permissions were involved. I was expecting consistent errors in initializing the component MSDAINITIALIZE. It seemed somewhat random however in that sometimes the data would retrieve and sometimes not.

Does anyone have a good explanation for the randomness?
dfranklet
dfranklet
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 8
Good stuff. The Providers options did it for me.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search