30.06.2013 Views

SQL Server Execution Plans - Red Gate Software

SQL Server Execution Plans - Red Gate Software

SQL Server Execution Plans - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: <strong>Execution</strong> Plan Basics<br />

I tend to click the icon more often than not but, either way, we see our very first<br />

estimated execution plan, as in Figure 1.1.<br />

Figure 1.1<br />

Visually, there's no easy way to tell the difference between an estimated plan and an<br />

actual plan. The differences are in the underlying data, which we'll be covering in some<br />

detail throughout the book.<br />

We'll explain what this plan represents shortly, but first, let's capture the actual<br />

execution plan.<br />

Getting the actual plan<br />

Actual execution plans, unlike estimated execution plans, do not represent the calculations<br />

of the optimizer. Instead, this execution plan shows exactly how <strong>SQL</strong> <strong>Server</strong><br />

executed the query. The two will often be identical but will sometimes differ, due to<br />

changes to the execution plan made by the storage engine, as we discussed earlier in<br />

the chapter.<br />

33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!