Note that there are some explanatory texts on larger screens.

plurals
  1. POLinked Server Performance and options
    primarykey
    data
    text
    <p>At work we have two servers, one is running an application a lot of people use which has an SQL Server 2000 back end. I have been free to query this for a long time but can't add anything to it such as stored procedures or extra tables. </p> <p>This has lead to us having a second SQL Server linked to the first one and me building up a library of stored procedures that query data from both sides using linked server. Some of these queries are taking longer than what I would like. </p> <p>Can someone point me to some good articles about using linked servers? I am particularly interested in finding out what data is being transferred between the two as usually the majority of the sql statement could be performed remotely but I have the feeling it may be transferring the full tables, it is usually just a join to a small final table locally.</p> <p>Also what do the linked server options do I currently have:</p> <ul> <li>Collation Compatible True</li> <li>Data Access True</li> <li>Rpc True</li> <li>Rpc Out True</li> <li>Use Remote Collation False</li> <li>Collation Name (Blank)</li> <li>Connection Timeout 0</li> <li>Query Timeout 0</li> </ul> <p><strong>EDIT:</strong></p> <p>Just thought I would update this post I used openqueries with dynamic parameters for a while to boost performance, thanks for the tip. However doing this can make queries more messy as you end up dealing with strings. finally this summer we upgraded SQL Server to 2008 and implemented live data mirroring. To be honest the open queries were approaching the speed of local queries for my tasks but the mirroring has certainly made the sql easier to deal with.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload