Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQl to Oracle Query

Status
Not open for further replies.

rchalker

Programmer
Jul 10, 2001
4
US
I have successfully linked SQL7 to Oracle but I cannot get a linked query to work;

example: select emp.empno from localoracle..scott.emp emp

The passthrough query works;

example: select * from openquery (localoracle, 'select * from emp').

What is the correct syntax for getting a linked query, linked update/insert to work?

Thanks,
Rod
 
localoracle..scott.emp

Its after lunch so my brain may be misfiring, but I think what you want is:

localracle.databasename.scott.emp

In my experience, the database name was required when using linked servers (though the owner can be defaulted if its dbo). Robert Bradley
Support operation moo!
Visit the OpCow page to help in this cause
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top