30.06.2013 Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

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 3: Query Plan Metadata<br />

In <strong>SQL</strong> <strong>Server</strong> 2005 <strong>Management</strong> Studio, you can click on the link to the query plan,<br />

thus opening it up as an XML document in SSMS, and then save it <strong>with</strong> a .<strong>SQL</strong>PLAN<br />

extension (by default it will be saved <strong>with</strong> an XML extension). You can open it up in SSMS<br />

and view the graphical plan. <strong>SQL</strong> <strong>Server</strong> 2008 <strong>Management</strong> Studio realizes the schema is<br />

a <strong>SQL</strong> plan, and so allows us to simply click the XML output to get a display that shows<br />

the graphical version of the plan, as shown in Figure 3.1 (cropped to save space).<br />

Figure 3.1: Viewing the query plan in <strong>Management</strong> Studio.<br />

In this way, we can find out precisely how a stored procedure was executed at the time of<br />

being cached.<br />

82

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

Saved successfully!

Ooh no, something went wrong!