Solved

otential performance differences between the following 3 SQL statements

Posted on 2011-02-24
2
270 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
2 Comments
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now