Inside the SQL Server Query Optimizer

So how does SQL Server pick which plan to run?  If you've ever wanted to get a better understanding of how the Query Optimizer works, this is the talk to attend.  Come listen to a member of the Query Processor development team explain how a query goes from SQL to the final plan.  This talk will cover conceptual topics like how query trees are built and how the optimizer stores all of the alternatives it is considering.  Additionally, the talk will examine examples in areas including index matching, parallel query generation, and update processing so that you can apply these concepts to better debug your own queries using the same techniques.
Presented by Conor Cunningham at SQLBits VI
  • Downloads
    Slide deck available Slide Deck 173 KB
    Video available WMV Video 241 MB
  • SpeakerBIO
    Conor Cunningham is a Principal Software Architect at Microsoft on the SQL Server Query Processor Team.  He's worked on database technologies for Microsoft for over 10 years and is holds numerous patents related to Query Optimization and Query Processing.  Conor is the author of a number of peer-reviewed articles on query optimization techniques.  Recently, he authored a chapter for the book "Microsoft SQL Server 2008 Internals" on how the Query Optimizer works.  He publishes a blog called "Conor vs. SQL" (  where he answers questions about databases.
  • Video