-
SQL2000 remote SQL query
we are trying to execute a remote sql query from one sql server against another. Both servers are in the same domain. The query is a simple select * from tablename where surname = whatever. We precede this with an 'opendatasource' statement. The query returns only a few rows. When we run the query between two sql servers on the same lan segment the query runs in a second or two. When we run the query between servers on two different network segments (seperated by a firewall) but still both in the same domain the same query takes 50+ seconds to run. Looking further, it seems that the query is actually being executed on the local server so the entire table (over 1 million rows) is copied locally before running the query. How can I run the query as a remote query so that the entire query is run on the remote sql server and only the query results are passed accross the network to the local server? I have also tried creating a linked server and using OPENQUERY but still takes ages to run.
Thanks
-
The below link contains some tips, although you may have already attempted a couple of them:
http://www.sql-server-performance.com/linked_server.asp
Paul
~~~~
Microsoft MVP (Visual Basic)
Similar Threads
-
By Joey_G in forum Database
Replies: 3
Last Post: 04-11-2005, 11:55 AM
-
By Daniel Reber in forum Database
Replies: 0
Last Post: 09-13-2002, 08:21 AM
-
By Ken D. in forum VB Classic
Replies: 2
Last Post: 09-03-2002, 11:25 PM
-
By Andy Jackson in forum VB Classic
Replies: 1
Last Post: 04-28-2002, 08:41 AM
-
By Larry Dodd in forum VB Classic
Replies: 3
Last Post: 04-13-2001, 06:43 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks