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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server to Oracle Query 1

Status
Not open for further replies.

dbomrrsm

Programmer
Feb 20, 2004
1,709
GB
I have set up a linked server to an oracle DB to pull some data. However, when I run any query passing the pk of the row I am after all I can see in Oracle is the query doing a Full Table Scan.

SQL Server does not appear to be sending the where clause as part of the query to oracle but appears to be saying - give me all the data and I will filter on the where clause when it has all been returned.

Even adding an oracle hint into the query has no effect it continues to FTS.

Is there any way of forcing the full query to be sent to oracle.

Example query is

select *
from tab_1
where column_1 = 123456

column_1 is the PK in the oracle DB

Any help much appreciated.

Thanks

DBomrrsm

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top