Sign in
Tips, Tricks, and Advice from the SQL Server Query Processing Team
The query processing team - query optimization & execution - providing tips, tricks, advice and answers to freqeuently-asked questions in a continued effort to make your queries run faster and smoother in SQL Server.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
Compilation time
data warehousing
Distinct aggregation
Estimate Rows
ETW
Hash Join
Indexing
Memory Management
OLAP
OLTP
optimizer
Query cost
query memory
query optimization
Query plan
Showplan
Showplan_XML
SQL Profiler
SQL Server 2005
SQL Trace
Star Join
Statistics Profile
Statistics XML
Tracing
Browse by Tags
MSDN Blogs
>
Tips, Tricks, and Advice from the SQL Server Query Processing Team
>
All Tags
>
sql server 2005
Tagged Content List
Blog Post:
Understanding SQL server memory grant
SQL Server Query Processor Team
This article describes how query memory grant works in Microsoft SQL Server. It applies to both SQL2005 and SQL2008. Written by Jay Choe, Microsoft SQL Server Engine. -------------------------------------------------------------------------------- Query memory grant (a.k.a. query work buffer) is...
on
16 Feb 2010
Blog Post:
Store Statistics XML in database tables using SQL Traces for further analysis.
SQL Server Query Processor Team
Since SQL Server 2005, query plan as well as statistics of query execution can be captured in XML format. Also, SQL Server 2005 has XQuery support to directly query XML document. By combining these two new features, users can analyze the query plans using queries. However, in SQL Server, there...
on
1 Jun 2007
Blog Post:
How to Check Whether the Final Query Plan is Optimized for Star Join Queries?
SQL Server Query Processor Team
The star join optimization technique is an index based optimization designed for data warehousing scenarios to make optimal use of non-clustered indexes on the huge fact tables. The general idea is to use the non-clustered indexes on the fact table to limit the number of rows scanned from it. More details...
on
9 Apr 2007
Blog Post:
Hash Warning SQL Profiler Event
SQL Server Query Processor Team
One of the less well-known warning events that is logged to SQL Profiler trace is the Hash Warning event . Hash Warning events are fired when a hash recursion or hash bailout has occurred during a hashing operation. Both of these situations are less than desirable, as they mean that a Hash Join or Hash...
on
1 Feb 2007
Blog Post:
Using ETW for SQL Server 2005
SQL Server Query Processor Team
ETW stands for “Event Tracing for Windows” and it is used by many Windows applications to provide debug trace functionality. This “wide” availability is a key point of using ETW because it can help to track certain activities from end to end. For example, you can literally track a request coming from...
on
12 Nov 2006
Blog Post:
Intro to Query Execution Bitmap Filters
SQL Server Query Processor Team
One of the least understood Query Execution operators is the Bitmap . I'd like to give a fairly brief overview of how Bitmap filters are used, as well as some technical details about their limitations and functionality. Bitmap filters are often mistaken as Bitmap indexes . The two are actually very distinct...
on
27 Oct 2006
Blog Post:
Statistics Profile Output Formatting
SQL Server Query Processor Team
Statistics profile output is an important tool when it comes to troubleshooting query plan issues. When enabled, it returns a textual representation of the query plan with a lot of detail about cost and cardinality estimates as well as actual counts. When working in SQL Server management Studio...
on
20 Oct 2006
Blog Post:
Showplan Trace Events
SQL Server Query Processor Team
Besides SSMS, another great tool available to database developers and DBAs to view query plans and troubleshoot query compilation or execution issues is the SQL Server Profiler. In the Profiler, all the showplan events are listed under the Performance Event category. All the SQL Trace events generate...
on
17 Oct 2006
Blog Post:
Viewing and Interpreting XML Showplans
SQL Server Query Processor Team
As mentioned in our previous blog posting, SQL Server 2005 supports Showplan generation in XML format. XML-based Showplans provide greater flexibility in viewing query plans and saving them to files as compared to legacy Showplans. In addition to the usability benefits, XML-based Showplans also contain...
on
6 Oct 2006
Blog Post:
Introduction to Showplan
SQL Server Query Processor Team
Showplan is a feature in SQL Server to display and read query plans. While some of you may already be very familiar with Showplan, it is one of the most important diagnostic tools that we use in the query processing team to locate and identify problems, and therefore deserves some extra exposure. Being...
on
29 Sep 2006
Blog Post:
Compilation Time Issues in OLTP Applications When Upgrading to SQL 2005
SQL Server Query Processor Team
I've helped a lot of people upgrade their SQL 2000 applications to SQL 2005. While many of these upgrades go well, occasionally some applications have issues and the overall workload may perform more poorly after the upgrade. One area where I've seen issues is with ad-hoc on-line transaction processing...
on
27 Sep 2006
Page 1 of 1 (11 items)