1 / 13

Basic Execution Plans Eugene Meidinger emeidinger@all-lines-tech @ sqlgene sqlgene

Basic Execution Plans Eugene Meidinger emeidinger@all-lines-tech.com @ sqlgene www.sqlgene.com. Thank you to our Sponsors!!!. Who is All Lines Technology?.

megan-lucas
Download Presentation

Basic Execution Plans Eugene Meidinger emeidinger@all-lines-tech @ sqlgene sqlgene

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic Execution Plans Eugene Meidinger emeidinger@all-lines-tech.com @sqlgene www.sqlgene.com

  2. Thank you to our Sponsors!!!

  3. Who is All Lines Technology? • All Lines Technology is a local woman owned solutions provider with corporate headquarters in Warrendale, PA, with offices in Cleveland, Columbus and Morgantown. • Our parent company, Fire Fighter Sales & Service Co.has been in business since 1946, supplying fire suppression and life safety products and services to over 15,000 customers in the tri-state area. • Customer service has been the cornerstone of our business for over 60 years. • Strong company foundation and financial stability achieving year of year profitable revenue growth.

  4. Who is LANtek? • Staffing – Named largest, local Staffing Firm in Western PA since 2011 • Hardware Break / Fix • Application Development • SharePoint Services • NOC / Help Desk Services • Network/LAN/WAN Design &Delivery • Datacenter Design &Architecture • PC Deployment • VDI and BYOD Solutions • Cloud Services, including LANtek hosted &MS Office 365 & Azure

  5. Who am I? • Accidental DBA • Graduated Penn State 2010 for IST • First Job was in BI department at Bayer • Head of small BI department at FF/ALT/Lantek • Certified in Querying SQL Server 2012 • Started speaking a year ago • Don’t go to the SQL Saturday after event! You’ll get drafted • Not an expert, just know enough to speak

  6. What are we going to talk about? • What is an execution Plan • How to view an execution plan • What does a plan look like • How to read one • Demo • Resources • Q/A

  7. What is an execution plan? • Instructions for how to process a query • Can think of it as a recipe • Created by query optimizer at run time • Execution plans are cached after the first run • Many different ways to process the same query • For trivial queries, a simple plan is used • Can be forced with hints • Don’t try to outsmart the database engine

  8. How to view the execution plan? • Go to Query • Click Include Actual Execution Plan • Or, Press Ctrl + M • Or click the Execution Plan Icon on the tool bar

  9. What does a plan look like?

  10. How to read an execution plan • Read from right to left and top to bottom • Icons represent operators • Operators have cost below them in % • Arrows represent data flow • Bigger arrows represent more data • Hover over icons and arrows for more detail

  11. Demo

  12. Resources • Adventure Works Database • Execution Plan Basics by Grant Fritchey • SQL Server Execution Plans, Second Edition by Grant Fritchey • Watch Brent Ozar Tune Queries by Brent Ozar

  13. Questions? Thank you!

More Related