0

How do I need to call an Oracle function with ref cursor output in a SQL Server linked server?

I used this statement:

SELECT *
FROM OPENQUERY(oracle, 'select * from functionname(''N'',''2016-11-01'')')

but I get this error

OLE DB provider "OraOLEDB.Oracle" for linked server "oracle" returned message "ORA-00933: SQL command not properly ended".

Msg 7321, Level 16, State 2, Line 33
An error occurred while preparing the query "select * from functionname('N','2016-11-01')" for execution against OLE DB provider "OraOLEDB.Oracle" for linked server "oracle".

Any help?

1 Answer 1

0

Maybe this will help? Calling an Oracle function from SQL Server Linked Server

EXECUTE (Query, Parameters) AT LinkedServerName
Sign up to request clarification or add additional context in comments.

1 Comment

I tryed it but my output is ref cursor and mssql don't have this type

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.