Home Forums SQL Server 7,2000 Performance Tuning OPENROWSET select statement performance -- runs in 4 seconds on test server vs. 3 minutes on production server. RE: OPENROWSET select statement performance -- runs in 4 seconds on test server vs. 3 minutes on production server.

  • Just wanted to follow-up to above: Currently suspecting network latency, as SQL test and Oracle prod servers are located in West Coast data center, whereas SQL prod server is located in East Coast data center, doing additional tests.

    Please confirm: From what I understand how OPENROWSET works, the query is processed on remote Oracle server and the WHERE clause processed on the remote server as well, only qualifying rows are sent back to SQL Server (vs. all records being sent to SQL server and WHERE clause being processed on local SQL server)? is this correct?

    Jeff:

    1. Not relevant, as I'm testing against prod Oracle view only

    2. Not relevant, as I'm testing against prod Oracle view only

    3. Not using linked server, using OPENROWSET

    4. Already using a view, though I did confirm the view selects all records from underlying table of 70K rows, no index on LAST_MODIFIED_DATE--but would expect to see similar run-time from both SQL prod and SQL test if issue was remote Oracle prod view related. Also, shouldn't be an issue since using OPENROWSET, correct me if I'm wrong. I understand that we can add index and also modify view to include the WHERE clause (if it doesn't impact other code), but that is not the underlying issue at this point from what we can tell.

    thank you again for feedback...

    rg