Thread: SQL Server Link Server issue.


Permlink Replies: 10 - Pages: 1 - Last Post: Dec 30, 2009 6:38 AM Last Post By: EBEKTECH2
nayyars

Posts: 5
Registered: 09/14/00
SQL Server Link Server issue.
Posted: Feb 2, 2004 8:57 AM
Click to report abuse...   Click to reply to this thread Reply
Hi,

I have setup a linked sql in SQL Server 2000 to connect to an Oracle 9i database. When I try to select from a table through the link server I get the following error message.

Could not execute query against OLE DB provider 'OraOLEDB.Oracle'.
OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ICommandText::Execute returned 0x80040155].

This is for a table without any nvarchar2 columns (I get a different error for tables containing those datatypes).

Any ideas?

Thanks

Sanjay

shsu

Posts: 234
Registered: 01/10/01
Re: SQL Server Link Server issue.
Posted: Feb 2, 2004 12:34 PM   in response to: nayyars in response to: nayyars
Click to report abuse...   Click to reply to this thread Reply
Sanjay,
Are you able to query SOCTT.EMP or SCOTT.DEPT?

select * from <Linked_Server_Name>..SCOTT.EMP;
select * from <Linked_Server_Name>..SCOTT.DEPT;

Is "Allow InProc" checked in the properties of the linked server?

Sinclair
punita.shah@img...

Posts: 4
Registered: 02/04/04
Re: SQL Server Link Server issue.
Posted: Feb 4, 2004 8:13 AM   in response to: shsu in response to: shsu
Click to report abuse...   Click to reply to this thread Reply
I am Sanjay's colleague.

I have tried querying from the two tables specified. That still comes back with the same error.

There is not property on the Link Server called "Allow InProc". How can I set this property?

Any suggestions?

Punita
punita.shah@img...

Posts: 4
Registered: 02/04/04
Re: SQL Server Link Server issue.
Posted: Feb 4, 2004 8:41 AM   in response to: punita.shah@img... in response to: punita.shah@img...
Click to report abuse...   Click to reply to this thread Reply
Hi,

Apologies for the previous mail. I have now set the property "Allow InProc". I can query from SCOTT.EMP and SCOTT.DEPT.

There is still an issue with the nvarchar2 datatype.
Any ideas when the new version of the provider is going to be released?
ralph.frederick...

Posts: 4
Registered: 03/10/03
Re: SQL Server Link Server issue.
Posted: May 20, 2004 8:35 AM   in response to: nayyars in response to: nayyars
Click to report abuse...   Click to reply to this thread Reply
Where can I find the "Allow InProc" property? Is it in the definition of the linkded server in SQL Server or on the Oracle OLE DB provider? Or somewhere else? I can't find a place to set it.

Ralph
shsu

Posts: 234
Registered: 01/10/01
Re: SQL Server Link Server issue.
Posted: May 20, 2004 11:48 AM   in response to: ralph.frederick... in response to: ralph.frederick...
Click to report abuse...   Click to reply to this thread Reply
Ralph,
1. Right-click on the linked server you created, select Properties from the popup menu.
2. In Linked Server Properties dialog box, click Options... button under Provider Name dropdown combo.
3. Check (or enable) "Allow InProcess" option.
4. Click Apply button.
5. Click Ok button.

Sinclair
ralph.frederick...

Posts: 4
Registered: 03/10/03
Re: SQL Server Link Server issue.
Posted: May 20, 2004 2:50 PM   in response to: nayyars in response to: nayyars
Click to report abuse...   Click to reply to this thread Reply
Sinclar,

Thanks very much for detailed response. I could only modify the properties if I re-added the server the Provider Options button was grayed out on existing links so that's probably why I didn't look there.

Ralph
pepepaco_1980@h...

Posts: 1
Registered: 03/20/03
Re: SQL Server Link Server issue.
Posted: Sep 17, 2004 6:50 AM   in response to: nayyars in response to: nayyars
Click to report abuse...   Click to reply to this thread Reply
That works for me, thank you very much.
user534617

Posts: 2
Registered: 10/05/06
Re: SQL Server Link Server issue.
Posted: Oct 5, 2006 1:19 AM   in response to: shsu in response to: shsu
Click to report abuse...   Click to reply to this thread Reply
Thanks. This helps me resolve me prb too.
sagueeff@yahoo.fr

Posts: 6
Registered: 01/30/03
Re: SQL Server Link Server issue.
Posted: Sep 2, 2009 2:06 AM   in response to: shsu in response to: shsu
Click to report abuse...   Click to reply to this thread Reply
Many thanks also

it solved my problem too

best regards
EBEKTECH2

Posts: 4
Registered: 12/03/09
Re: SQL Server Link Server issue.
Posted: Dec 30, 2009 6:38 AM   in response to: shsu in response to: shsu
Click to report abuse...   Click to reply to this thread Reply
This has also resolved my issue with the same error msg. However, I was using SQL Server2000 and the properties were not modifiable for an existing linked server. The way around this is to create a new one and click Provider Options in the general tab and then tick Allow InProcess.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums