|
-
Apr 12th, 2010, 12:59 PM
#2
Re: caliing stored procedure issue
 Originally Posted by karthikeyan
Hi,
i have created linked server between my sqlserver2008 and Oracle10g.
the following query is working fine
select * from openquery (DCCOM,'select * from sample).
but if i try to call procedure
select
* from openquery(DCCOM, '{CALL scott.get_test({resultset 25, OUTPUT})}');
it gives an error as "
Msg 7357, Level 16, State 2, Line 1
Cannot process the object "{CALL scott.get_test({resultset 25, OUTPUT})}". The OLE DB provider "OraOLEDB.Oracle" for linked server "DCCOM" indicates that either the object has no columns or the current user does not have permissions on that object."
how to solve this issue. please help me in this
What is get_test? I tried to call a function from SQL Server Express to Oracle 9i database and it worked for me.
I used a different syntax.
Code:
select * from openquery(NTEST, 'select callabc(to_date(''10/01/2019'',''mm/dd/yyyy'')) from dual')
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|