Solved

otential performance differences between the following 3 SQL statements

Posted on 2011-02-24
2
306 Views
Last Modified: 2012-05-11
Based on the listed assumptions, what are the potential performance differences between the following 3 SQL statements?  All statements are run on Server A.

>> select * from CustData..Cust c join CustData..Dept d on (c.DeptID = d.DeptID)

LinkServerA: Linked server definition, defined on Server A, that points back to itself

>> select * from CustData..Cust c join LinkServerA.CustData..Dept d on (c.DeptID = d.DeptID)

LinkServerB: Linked server definition, defined on Server A, that points to remote Server B

>> select * from CustData..Cust c join LinkServerB.CustData..Dept d on (c.DeptID = d.DeptID)
0
Comment
Question by:tesla764
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
ID: 34972081
hi
one thing i ran into is that Because linked server is using OS memory rather than the buffer pool and if there is not enough memory, your query performance will degrade.


--------------------------------------------------------------------------------
0
 

Author Closing Comment

by:tesla764
ID: 35140117
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSIS GUID Variable 2 38
SQL eating up memory? 16 42
TSQL - How to get output results in row with additional character(comma) 7 16
Need to find substring in SQL 3 15
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question