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!

“where” clause not executed until entire database is pulled across net

Status
Not open for further replies.

tbrauch

Technical User
Aug 29, 2000
4
US
I have an ODBC connection from NT Server to an Oracle database. When I execute a MS SQL query against that Oracle database, it appears that the “where” clause is not being executed until the entire database has been pulled over to the server ??? Any way to avoid this ?

Thanks
 
I am in SQL Server query analyzer executing query batch.
 
I've seen this with remote views from client-side database apps like Visual FoxPro, but never in the Query Analyzer.

In addition to MichaelRed's suggestion of creating and calling a stored procedure rather than executing the statement directly, you might also be able to create a view that includes the filter, then simply query the view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top