0

Is there a way to execute the following statement from Oracle using a database link to a SQL Server instance without having to create a view on the target instance?

select db_name(), @@SERVERNAME

I have tried

"select db_name(), @@SERVERNAME"@DbLink 

but that did not succeed.

Any help would be greatly appreciated

2

1 Answer 1

1

Here:

select dbo.FunctionName@dblink('value') from dual;

But you need to tell the dblink which functions must be available through the dblink. See the manual at: http://docs.oracle.com/cd/E11882_01/server.112/e11050/admin.htm#i1007467

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. As I no longer work in a company that uses Oracle I cannot test it. Have upvoted your answer though.

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.