Understanding Statistics In SQL Server

An exploration of what SQL Server statistics are, how SQL Server uses them, and how to use them to increase performance
4.5 (14 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
144 students enrolled
Instructed by Shaun Stuart Development / Databases
75% off
Take This Course
  • Lectures 17
  • Length 2 hours
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 7/2015 English

Course Description

This course explains what statistics are in SQL Server, how the query engine uses them to generate query plans, and how you can tweak them to improve performance. It provides sample scripts and demonstrations.

The course will take just under 2 hours to complete. It consists of videos and demos. It also includes T-SQL scripts you can download for use on your own systems.

This course is intended for database administrators with an advanced-beginner to intermediate-level knowledge of SQL Server 2008, 2008 R2, or 2012.

What are the requirements?

  • A copy of SQL Server 2008 R2 SP2 or later is recommended, although SQL 2005 can be used
  • Download the AdventureWords2012 sample database from CodePlex. The link is in the course and the free demo video.
  • Basic knowledge of Query Plans is helpful, but not required.
  • Basic knowledge of T-SQL is helpful, but not required.

What am I going to get from this course?

  • Almost 2 hours of content!
  • Improve SQL Server performance
  • Troubleshoot and fix SQL Server performance issues
  • Maintain statistics to ensure optimum SQL Server performance

Who is the target audience?

  • This course is meant for advanced beginner to intermediate level DBAs who want to learn more about how statistics are created, used, and maintained in SQL Server.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction
Instructor Details

An overview of the topics this course will cover.

Section 2: What Are Statistics And What Are They Used For?

Learn what statistics are in SQL Server and what objects they are created on.


How does SQL Server use statistics.


What permissions are needed to view statistics and how do you view them.


What does a SQL Server statistic actually look like? Learn the three parts of statistic.


A demo of how to view statistics using T-SQL code in SQL Server Management Studio.

Section 3: When And How Are Statistics Created?

Statistics can be created in a couple different ways.


A demo of automatically and manually created statistics.

Section 4: When And How Are Statistics Updated?

The statistics auto-update process.


How to manually update statistics.


A demo of both automatic and manual statistics updates.

Section 5: How Statistics Affect Performance

How out of date statistics can cause performance issues.


A demo of performance issues caused by out of date statistics.

Section 6: Problems And Solutions

A description of a couple different problems that can be caused by bad statistics and how to overcome them.


A demo of how uneven data distribution can cause performance issues, even with updated statistics.

Section 7: Wrap Up
Wrap Up

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Shaun Stuart, Senior SQL Server Database Administrator And Author

Shaun J. Stuart is a Database Administrator with over 15 years experience with SQL Server. He holds the following Microsoft certifications: MCTS: SQL Server 2005, MCTS: SQL Server 2008, MCITP: Database Administrator 2008, and MCSA: SQL Server 2012. He is the senior Database Administrator at the largest credit union in Arizona and a co-author of the book Tribal SQL: New Voices In SQL Server, published by Red Gate. He holds a Bachelors degree in electrical engineering.

Ready to start learning?
Take This Course