Microsoft Learning Logo is a registered trademark of Microsoft. All rights reserved.

SQL Server 2014 Performance Tuning and Optimization

Schedule

Start End Duration Location Details

Course Details

SQL Server 2014 Performance Tuning and Optimization

Course Code: 55144

Duration: 5 days

Prerequisite: 

  • Basic knowledge of the Microsoft Windows operating system and its core functionality.
  • Working knowledge of database administration and maintenance.
  • Working knowledge of Transact-SQL.

Course Description:

This course is designed to give the right amount of Internals knowledge, and wealth of practical tuning and optimization techniques, that you can put into production. The course offers a comprehensive coverage of SQL Server architecture, indexing and statistics strategies, optimize transaction log operations, tempdb and data file configuration, transactions and isolation levels, and locking and blocking.

Course Objectives:

After completing this course, students will be able to:

  • Understand and utilize the new cardinality estimator.
  • Understand and utilize memory-optimized tables.
  • Understand performance.
  • Understand and utilize startup stored procedures.
  • Understand database structures.
  • Understand and utilize Instant File Initialization.
  • Understand how SQL stored data.
  • Understand how SQL locates data.
  • Understand temporary table internals.
  • Understand and utilize the new cardinality estimator.
  • Understand and utilize memory-optimized tables.
  • Understand performance.
  • Understand and utilize startup stored procedures.
  • Understand database structures.
  • Understand and utilize Instant File Initialization.
  • Understand how SQL stored data.
  • Understand how SQL locates data.
  • Understand temporary table internals.
  • Understand and utilize table valued parameters.
  • Understand concurrency.
  • Understand and utilize transactions.
  • Understand isolation levels.
  • Understand and utilize SQL Server locking architecture.
  • Understand SQL and Storage Area Networks (SAN).
  • Understand and utilize SQL on virtual machines.
  • Understand SQLIO Utility and its uses.
  • Understand and utilize partitioned tables and indexes.
  • Understand and utilize the Resource Governor.
  • Understand and utilize Activity Monitor.
  • Understand Live Query Statistics.
  • Understand how to monitor SQL using Transact-SQL.
  • Understand and utilize performance DMVs.
  • Understand indexes and their importance.
  • Understand index types.
  • Create and alter indexes.
  • Understand and utilize index metadata.
  • Understand and utilize Database Tuning Advisor.
  • Understand and utilize Index Data Management Objects.
  • Understand fragmentation of indexes and utilize page splits
  • Understand index storage strategies.
  • Understand and utilize indexed views.
  • Understand monitoring indexes.
  • Understand index best practices.
  • Understand and utilize statistics objects.
  • Understand and utilize histogram.
  • Understand and utilize new vs old cardinality estimator.
  • Understand and utilize incremental statistics.
  • Understand and utilize computed columns.
  • Understand and utilize filtered statistics.
  • Understand and utilize ascending keys.
  • Understand and utilize statistics maintenance plan.
  • Understand architecture.
  • Understand and utilize tables and indexes.
  • Understand and utilize the hash index.
  • Understand and utilize natively compiled stored procedures.
  • Understand restrictions.
  • Understand and utilize the Analyze Migrate Report tool.
  • Understand and utilize in-memory data management views.
  • Understand and utilize the SQL Trace Default template.
  • Understand and utilize the SQL Profiler Tuning template.
  • Create and utilize a template for slow running queries.
  • Understand and identify long running queries.
  • Use Profiler to detect deadlocks.
  • Use Profiler to detect a blocked process.
  • Understand and utilize query hints.
  • Create and test a plan guide.
  • Allow SQL Profiler to help create a plan.
  • Understand and utilize plan freezing.

Intended Audience:

The primary audience for this course is individuals who administer and maintain SQL Server databases, and are responsible for optimal performance of SQL Server instances that they manage. These individuals also write queries against data and need to ensure optimal execution performance of the workloads. The secondary audiences for this course are individuals who develop applications that deliver content from SQL Server databases.

Course Outline:

Module 1: Course Overview

•    Introduction
•    Course Materials
•    Facilities
•    Prerequisites
•    What We'll Be Discussing

Module 2: SQL 2014 Architecture

•    The New Cardinality Estimator
•    Memory-Optimized Tables
•    Understanding Performance for Developers
•    Understanding Startup Parameters
•    Startup Stored Procedures
•    Database Structures
•    Instant File Initialization
•    How SQL Stores Data
•    How SQL Locates Data

Module 3: The Database Engine

•    Four Important Concepts
•     Temporary Tables Internals
•     Concurrency
•     Transactions
•     Isolation Levels
•     SQL Server Locking Architecture
•     SQL and Storage Area Networks (SAN)
•     SQL on VMs
•     SQLIO Utility
•    Partitioned Tables and Indexes

Module 4: SQL Performance Tools

•    The Resource Governor
•    Activity Monitor
•    Live Query Statistics
•    Monitoring SQL with Transact-SQL
•    Dynamic Management Objects (DMOs) and Performance Tuning

Module 5: Query Optimizing and Operators

•    Tuning Process
•    Performance Monitor Tool
•    SQL Query Processing Steps
•    Understanding Execution Plans
•    SET STATISTICS TIME and SET STATISTICS IO
•    Data Access Operators
•    Troubleshooting Queries

Module 6: Understanding Indexes

•    Introduction to Indexes
•    Index Types by Storage
•    Index Types by Column Designation
•    Creating and Altering Indexes
•    Metadata
•    Data Management Views for Indexing
•    Database Engine Tuning Advisor
•    Index Data Management Objects
•    SQL Server Fragmentation
•    Patterns
•    Index Storage Strategies
•    Indexed Views
•    Monitoring Indexes
•    Index Dynamic Management Objects (DMOs)
•    Best Practices

Module 7: Understanding Statistics

•    Statistics
•    Cardinality Estimator
•    Incremental Statistics
•    Computed Columns Statistics
•    Filtered Statistics
•    Maintenance

Module 8: In-Memory Database

•    Architecture
•    Tables and Indexes
•    Natively Compiled Stored Procedures
•    Restrictions
•    Analyze Migrate Report Tool
•    In-Memory Data Management Views (DMV)

Module 9: SQL Profiler and SQL Trace

•    SQL Trace
•    SQL Trace Architecture
•    SQL Server Profiler

Module 10: Query Issues and Hints

•    Query Hints
•    Plan Guides
•    Plan Freezing