Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
SQL Server Performance Tuning Part 2
Rating: 4.7 out of 5(2,786 ratings)
14,529 students

SQL Server Performance Tuning Part 2

Resolving SQL Server performance tuning issues
Created byRaphael Asghar
Last updated 5/2018
English
English [Auto],Spanish [Auto],

What you'll learn

  • This is the second part of SQL Server performance tuning course; at the end of this course the student will be able to resolve and troubleshoot issues related index tuning, page splitting, tempb database sizing, recompilation of stored procedures, and much more with the use of tools and utilities such the performance monitor, DTA, DMVs, extended events, profiler and other tools.

Course content

1 section41 lectures7h 35m total length
  • PRE REQUISTES TO SQL SERVER PERFORMANCE TUNING PART 23:20

    Master production SQL server performance tuning by addressing tempdb configuration, index tuning, page splits, and wait stats. Build on SQL administration and performance tuning prerequisites.

  • DOWNLOADING THE APPLICATIONS13:32

    download and set up the required software for SQL performance tuning part two, including VirtualBox, Windows Server 2016, and SQL Server 2017, and configure the virtual environment for testing.

  • CREATING VM AND INSTALLING WINDOWS 2016 OS12:33

    Create a virtual machine in Oracle VirtualBox, install Windows Server 2016, allocate 2 GB RAM and a 40 GB fixed disk, and prepare the OS for SQL performance tuning training.

  • INSTALLING SQL 201710:00
  • INSTALLING SQL 2017 PART 212:04

    install sql server 2017 part 2, disable python and polybase, install sql server management studio 17.4, and compare 2017 with 2016 and older versions for performance tuning prep.

  • SQL SERVER VERSION COMPARISON6:28

    Compare SQL Server versions from 2014 to 2017, showing identical t-sql behavior across versions and noting Linux deployment is possible with newer releases.

  • PERFMOM5:14

    Explore the Windows Performance Monitor (perfmon) to monitor SQL Server performance. Learn to add counters and create data collection sets for SQL Server CPU, memory, network, and disk.

  • PERFORMANCE COUNTERS19:12

    Explore essential performance counters across cpu, memory, network, and disk to diagnose SQL Server issues, including buffer cache hit ratio, page life expectancy, batch requests per second, and locks.

  • SAVING PERMON COUNTERS8:05

    Create and save performance monitor counter sets with MMC to automate monitoring of memory, network, disk, and SQL counters for daily baselines.

  • DATA COLLECTION SET10:00

    Create and manage data collection sets with Perfmon to build a baseline for SQL Server performance, capturing counters like CPU, memory, disk, and network for time-based comparison.

  • DATA COLLECTION SET PART 212:47

    Create a manual data collector set, choose memory and CPU counters, set a 10-second interval, save as CSV, and schedule weekly collection to build a quarterly performance baseline.

  • ADDING ADVENTUREWORKS 20175:57

    Learn how to restore the AdventureWorks 2017 database on SQL Server 2017 and set up a data collection set for performance monitoring.

  • ANALYSIS OF METRICS16:45

    Create a baseline of sql server and windows performance metrics with perfmon data collector sets, export to csv, and analyze averages, mins, and maxes to guide tuning decisions.

  • BASELINE CPU14:33

    Create a baseline CPU with the SQL Query Stress Utility, stress the SQL Server, and compare the baseline and stress data to identify CPU bottlenecks.

  • SQL PROFILER6:51

    Learn to use sql profiler with the perfmon to correlate cpu spikes to hardware resource use, while noting profiler's deprecation and the shift to extended events.

  • LIMIT PROFILER DATA8:19

    Use SQL profiler to limit data by columns and filters, saving traces to file or table to reduce resource use and focus on the target database.

  • PERFMON AND PROFILER8:56

    Correlate performance monitor with SQL profiler to identify queries causing CPU plateau, capturing traces and importing data to pinpoint the culprit query.

  • EXTENDED EVENTS PART 110:00

    Explore SQL Server extended events and why they replace profiler for production tuning, with a lightweight GUI-based setup to track security, long-running queries, page splits, and locks.

  • EXTENDED EVENTS PART 210:36

    Explore extended events in SQL Server, create and filter event sessions, capture SQL text, database name, and user details, and analyze security and long-running queries for performance tuning.

  • EXTENDED EVENTS SESSION SCRIPT9:45

    Learn to create and alter extended events sessions with T-SQL, add events such as database created, started, stopped, and login, start the session, and monitor live data.

  • FIND LONGEST RUNNING QUERY8:17

    Identify the longest running queries with extended events, add useful columns, and use dmvs to monitor sessions and events for production performance with lightweight overhead.

  • DMVS12:15

    Learn how DMVs and DMFs monitor SQL Server performance across server- and database-scoped views to reveal indexing, wait stats, and cpu, memory, and disk usage with practical examples.

  • SETTING UP QUERY STORE4:34

    Set up and use Query Store to monitor SQL Server performance, including creating a stretch database, migrating data with the export wizard, and preparing the environment for Query Store demonstrations.

  • QUERY STORE10:00

    Learn how to use query store in SQL Server 2016 to capture and view historical data for queries, execution plans, statistics, and workload changes, enabling troubleshooting of long running queries.

  • QUERY STORE PART 216:49

    Tune SQL Server performance by configuring and monitoring query store, adjusting max size and capture modes, and analyzing regressed and top resource queries with DMVs and execution plans.

  • FORCED PLAN10:00

    Learn how the query store enables a forced plan, comparing execution plans for the same query and enforcing the best plan. Observe how a non-clustered index lowers logical reads.

  • FORCED PLAN PART 211:00

    Force the most efficient query plan by selecting plan 13 via UI or a force plan, then create a composite index and reduce logical reads with the query store.

  • INDEXING AND FRAGMETATION13:35

    Explore how updates cause index fragmentation, measure it with sys.dm_db_index_physical_stats, and resolve it using reorganize or rebuild, considering fill factor 90 and maintenance automation.

  • SQL AGENT JOB FOR INDEX AND OLA10:00

    Create an automated index fragmentation plan using maintenance plan, SQL agent job, or Ola's script; configure rebuild/reorganize options, online indexing, and scheduling to manage fragmentation across multiple indexes.

  • SQL AGENT JOB FOR INDEX AND OLA PART 211:06

    Learn to create and run SQL agent jobs for index maintenance, compare maintenance plans with manual execution, and implement Ola Hallengren scripts to optimize fragmentation across databases.

  • DTA INDEXING AND QUERY STORE18:24

    Learn to use the query store and database tuning advisor to identify and apply targeted indexing across a single database, turning workload data into optimized, tested indexes.

  • SOLVING RECOMPILATION10:00

    Explore how compilation and recompilation affect SQL Server performance and CPU usage, and learn to monitor and reduce them using SQL Profiler, DMVs, and execution plan caching.

  • SOLVING COMPILATION PART 215:25

    Learn how interleaved DDL and DML in a stored procedure triggers recompilations, and how to monitor them with Perfmon, SQL Profiler, and Extended Events to optimize performance.

  • RESOVLING PAGE SPLITS PART 110:00

    explores how page splits occur during mid-page inserts, explains how fill factor affects data and index pages, and demonstrates remedies to minimize splits and IO in OLTP workloads.

  • RESOVLING PAGE SPLITS PART 216:27

    Explore how data and index pages fill toward 8060 bytes, triggering page splits during inserts, and use dbcc page and performance monitor to observe and differentiate good and bad splits.

  • VIEWING PAGE SPLITS VIA EXTENDED EVENTS8:46

    Explore viewing page splits with extended events to troubleshoot performance, using scripted T-SQL sessions and live data from performance monitor counters.

  • RESOLVING BLOCKING ISSUES16:13

    Explore blocking and locking in SQL Server, diagnose open transactions with extended events, sp_who, DMVs, and performance monitors, and resolve issues caused by poor indexing, bad queries, or limited resources.

  • TEMPDB PERFORMANCE10:00

    Explore tempdb's role as a busy system database and learn how to improve performance by moving to a fast separate drive, sizing files, adding data files, and tuning auto growth.

  • TEMPDB PERFORMANCE PART 210:41

    Move the tempdb from the C drive to a dedicated fast drive, restart services, and add extra tempdb data files based on CPU count up to eight to boost performance.

  • DATABASE BACKUPS9:17

    Resolve backup performance issues by scheduling heavy database backups after business hours, monitoring duration, using compression to save time and space, and leveraging always on replica backups for production.

  • WAIT STATS18:02

    Explore how wait stats diagnose SQL Server performance issues in SQL Server Performance Tuning Part 2, using dm_os_wait_stats, extended events, and top wait types to identify locks and processor bottlenecks.

Requirements

  • SQL performance tuning part 2 requires that you MUST have SQL performance tuning part 1 course and SQL administration part 1,2,3 as well as Learn T-SQL courses. All SQL Server application, Virtual Box application and Windows 2016 operating system will be available as a trail period for 6 months via downloads

Description

     This course is designed for any student who has knowledge of SQL Administration and wants to learn about SQL Server performance tuning their SQL servers.  You must have the prerequisite SQL performance tuning part 1 course.

     This is the second part of SQL Server performance tuning course; at the end of this course the student will be able to resolve and troubleshoot issues related index tuning, page splitting, tempb database sizing, recompilation of stored procedures, and much more with the use of tools and utilities such the performance monitor, DTA, DMVs, extended events, profiler and other tools.  This will allow you to have an optimum running SQL Server and an extensive knowledge of how to trouble shoot and resolve the more pressing issues you may face in your environment.

Who this course is for:

  • Any student who has knowledge of SQL Administration and wants to learn about SQL Server performance tuning their SQL servers. You must have the prerequisite SQL performance tuning part 1 course