FREE PDF

eBook

SQL Server Execution Plans, 2nd Edition

Download free PDF

Download your free eBook.

About the eBook

by Grant Fritchey

Every day, out in the various online forums devoted to SQL Server, and on Twitter, the same types of questions come up repeatedly: Why is this query running slowly? Why is SQL Server ignoring my index? Why does this query run quickly sometimes and slowly at others? My response is the same in each case: have you looked at the execution plan?

An execution plan describes what’s going on behind the scenes when SQL Server executes a query. It shows how the query optimizer joined the data from the various tables defined in the query, which indexes it used, if any, how it performed any aggregations or sorting, and much more. It also estimates the cost of all of these operations, in terms of the relative load placed on the system.

Every Database Administrator, developer, report writer, and anyone else who writes T-SQL to access SQL Server data, must understand how to read and interpret execution plans. My book leads you right from the basics of capturing plans, through how to interpret them in their various forms, graphical or XML, and then how to use the information you find there to diagnose the most common causes of poor query performance, and so optimize your SQL queries, and improve your indexing strategy.

Buy from Amazon.comKindle
Buy from Amazon.co.ukKindle

Free PDF download

Table of Contents

  • Chapter 1: Execution Plan Basics
  • Chapter 2: Graphical Execution Plans for Basic Queries
  • Chapter 3: Text and XML Execution Plans for Basic Queries
  • Chapter 4: Understanding More Complex Query Plans
  • Chapter 5: Controlling Execution Plans with Hints
  • Chapter 6: Cursor Operations
  • Chapter 7: Special Datatypes and Execution Plans
  • Chapter 8: Advanced Topics

About the author

Grant Fritchey is a SQL Server MVP with over 20 years’ experience in IT, including time spent in support and development. Grant has worked with SQL Server since version 6.0 back in 1995. He has developed in VB, VB.Net, C#, and Java. Grant has authored books for Apress and Simple-Talk, and joined Redgate as a Product Evangelist in January 2011. Find Grant on Twitter @GFritchey or on his blog.

Share

  • Twitter
  • Facebook
  • Google+
  • LinkedIn

You may also like

Video

ReadyRoll Visual Studio Migrations demo

SQL Server MVP Steve Jones presents a walkthrough of ReadyRoll, Redgate's tool for making SQL Server database changes in Visual St…

Article

119 SQL Code Smells

Every SQL code smell we could think of, in one handy reference guide.

eBook

Defensive Database Programming

The goal of this book is to help you to produce resilient T-SQL code that robustly and gracefully handles cases of unintended use, and …