Hello sue,
I'm calling the Sub with "EXEC ORA_LINKED..DATABASE.STOREPROCEDURE"
I try with an OpenQuery with the syntax :
SELECT * FROM OPENQUERY(ORA_LINKED,'DATABASE.STOREPROCEDURE')
and I have this error message
"
Could not process object 'DATABASE.STOREPROCEDURE'. The OLE DB provider
'MSDAORA' indicates that the object has no columns.
OLE DB error trace [Non-interface error: OLE DB provider unable to process
object, since the object has no columnsProviderName='MSDAORA',
Query='DATABASE.STOREPROCEDURE'].
"
The Oracle Stored Procedure doesn't return any value because an Oracle
Stored Procedure can't return a value.
A tried to do the same with an Oracle Function, but I have the same error.
[quoted text, click to view] "Sue Hoegemeier" <Sue_H@nomail.please> wrote in message
news:650ae2lre2d0thf97lifcjp1h3i0g8s7ip@4ax.com...
> How are you executing this? What syntax are you using?
> You need to be using Openquery or Openrowset and the stored
> procedure needs to return a result set. Umachandar
> Jayachandran has posted some great examples before - try
> doing a google search on his name and oracle stored
> procedure and you can find several examples.
>
> -Sue
>
> On Thu, 17 Aug 2006 15:03:18 +0200, "Richard Urrutia"
> <richard.urrutia@ciel.com> wrote:
>
>>Hi,
>>I'm trying to call an Oracle stored procedure from Sql server and I have
>>this error message
>>
>>Could not execute procedure 'INTEGRE_INTERNET' on remote server
>>'ORA_DEV1'.
>>[OLE/DB provider returned message: One or more errors occurred during
>>processing of command.]
>>[OLE/DB provider returned message: Syntax error in {call...} ODBC Escape.]
>>
>>My linked server seems to be ok, I can run a "Select " query from the
>>query
>>analyser to a Oracle table but I can't run a oracle stored procedure...
>>
>>Do you have any idea ?
>>
>>thanks
>>
>>richard
>>
>>
>