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 1
Rating: 4.7 out of 5(5,969 ratings)
25,384 students

SQL Server Performance Tuning Part 1

Detail building blocks of SQL performance tuning
Created byRaphael Asghar
Last updated 3/2020
English
German [Auto],English [Auto],

What you'll learn

  • At the end of this course, the student will have extensive knowledge in the following areas: Types of indexes that can affect performance, ability to read and understand the execution plans, determine the causes of wait stats, views deeply into statistics, comprehend the cause of the fill factor and page splits, view various execution modes and much much more

Course content

1 section37 lectures5h 57m total length
  • DOWNLOAD APPLICATIONS8:32

    Download the virtual box platform, Windows Server 2016 ISO, and SQL Server 2016, plus SQL Server Management Studio, to create virtual machines for SQL Server performance tuning.

  • SQL Performance Tuning Part 113:02

    Explore the building blocks of SQL Server performance tuning and diagnose issues before hardware changes, covering slow queries, indexing types, wait stats, tempdb, and DMVs to resolve common performance problems.

  • CREATE A VIRTUAL MACHINE17:11

    Create a virtual machine with VirtualBox, install Windows Server 2016, install SQL Server 2016 with SSMS, and prepare the AdventureWorks backup file to practice SQL performance tuning.

  • CONFIGURING WINDOWS SERVER8:02

    Configure Windows Server for SQL Server 2016 by setting up a shared folder and VirtualBox guest additions, then install SQL Server 2016 on the VM.

  • INSTALLING SQL SERVER 2016 PART 19:45

    Install SQL Server 2016 on a Windows 2016 server and optimize performance by placing data, log, and tempdb on separate drives or virtual disks using disk management.

  • INSTALLING SQL SERVER 2016 PART 210:15

    Install SQL Server 2016 with a minimal footprint by redirecting data, log, and temp files to dedicated drives, selecting only essential features, configuring service accounts, and addressing prerequisites.

  • INSTALLING SSMS2:05

    Install SQL Server Management Studio (SSMS) and use the front-end interface to control SQL Server; follow the wizard, reboot the virtual machine, and start the server.

  • RESTORING DATABASE6:34

    Master restoring a database in SQL Server using SSMS, including relocating data and log files for Adventureworks 2016, and preview the first part of a two‑part performance tuning course.

  • WHAT IS SQL PERFORMANCE TUNING10:38

    Define SQL performance tuning as ensuring SQL statements and stored procedures run fastest. Identify bottlenecks and monitor with performance tools to improve throughput and reduce response time.

  • HARDWARE9:30

    Learn to tune SQL Server performance by examining disks, CPU, memory, and network using performance counters; identify bottlenecks and avoid buying faster servers as a first remedy.

  • DETAIL KNOWLEDGE OF PARTS5:24

    Build a solid foundation for sql performance tuning by exploring the many parts, including indexes and b-tree fundamentals, page fill factor and page splitting, statistics, locking, blocking, and execution plans.

  • AUTOGROWTH SETTING AND QUIZ 19:32

    Learn to configure auto growth for each production database in SQL Server, pre-size data and log files, and monitor growth to prevent pauses and fragmentation and improve performance.

  • INDEXES4:39

    Explore indexing and its role in SQL Server performance, including clustered and nonclustered indexes, types like covered, columnstore, and filtered indexes, and how DMVs identify missing or unused indexes.

  • WHAT IS INDEXING15:46

    Explore how indexing speeds data retrieval in SQL Server by using clustered and non-clustered indexes to avoid table scans, reduce logical reads, and optimize execution plans.

  • CREATE A CLUSTERED INDEX WITH PK4:47

    Create a table with a primary key to automatically create a clustered index. Observe inserts appearing in order under the clustered index and the primary key's impact.

  • NON CLUSTERED INDEX9:58

    Learn how non-clustered indexes are separate structures from the base table that improve performance using row locators, while noting the extra disk space required.

  • B TREE5:27

    Understand how a b-tree index speeds data retrieval using root, intermediate, and leaf nodes. Clustered indexes store full rows at leaf nodes; non-clustered indexes point to data.

  • B TREE NON CLUSTER INDEX4:11

    Explore how a non-clustered index works with a clustered index, using pointers to data to navigate from root to leaf and reduce table scans.

  • ANATOMY OF SQL PAGE5:21

    Explore the anatomy of a SQL page, an eight kilobyte storage unit with a header and data area, including data page, index page, and IMA page types and implications.

  • CAUSING A PAGE SPLIT18:18

    Examine how page splits affect SQL Server performance and learn to observe data and index pages during inserts.

  • TYPES OF INDEXES3:50

    This lecture covers clustered and non-clustered indexes, plus included, filtered, unique, and covered indexes, their use in OLTP vs OLAP, and the role of execution plans in performance tuning.

  • WHAT IS THE QUERY OPTIMIZER11:05

    Explore how the SQL query optimizer selects the most efficient execution plan for a query in SQL Server by analyzing statistics, parsing, and generating access and execution plans.

  • OPERATORS7:16

    Explore the execution plan and its operators—table scans, clustered and nonclustered index scans, sorts, joins (nested hash, merge), and key lookups—and read data flow via arrows and cost estimates.

  • TABLE SCAN17:17

    Explore how a table scan on a heap becomes efficient with a clustered index, using where clauses and index seeks guided by execution plans and IO statistics.

  • NON CLUSTERED INDEX PART 1 AND QUIZ 212:00

    Learn how non-clustered indexes improve query performance and when to apply them. See how they work with clustered indexes, cover queries, and impact execution plans.

  • NON CLUSTERED INDEX PART 211:56

    Discover how non-clustered indexes boost performance by replacing scans with seeks, minimizing key lookups, and using covering indexes for city and address queries.

  • ORDER OF COLUMN IN NON CLUSTERED INDEX3:14

    See how column order in a non-clustered covered index drives index seek over scan, and how swapping city and address line enables the optimizer to reach a seek.

  • FILTER NON CLUSTERED INDEX9:11

    Learn how non-clustered filtered indexes use a where clause to reduce disk space, boost query performance, and simplify maintenance.

  • SORT OPERATOR4:07

    Discover how the sort operator costs memory and I/O, and avoid it by creating a clustered index on order by column, letting the optimizer skip sorting, as shown with city.

  • JOIN OPERATORS12:21

    Explore how nested loop, hash, and merge joins operate in production SQL databases, and learn how indexes and data ordering influence execution plans and performance.

  • STATISTICS19:05
  • What is Locking?11:26

    Learn how locking in SQL Server ensures data integrity and concurrency with exclusive, shared, and update locks, blocking, and deadlocks, and how transactions pass the acid test.

  • What is blocking?9:57

    Demonstrate blocking in SQL Server using two users and an open transaction with an exclusive lock. See how the second user waits until the first commits, revealing locking dynamics.

  • DEADLOCKS8:27

    Explore how deadlocks occur when sessions lock resources and each requests the other's lock, and learn how SQL Server resolves them by killing a deadlock victim with error 1205.

  • WAIT STATISTICS14:37

    Explore wait statistics, CPU cycles, and DMVs to diagnose blocking, locking, and performance issues in production SQL databases, and learn to interpret wait types and page IO latch waits.

  • RECOMPILATIONS7:08

    Explore how the query optimizer compiles a stored procedure by parsing, validating, and generating an execution plan, then caching it for fast reuse. Understand recompilation and how parameterization mitigates it.

  • TEMPDB AND QUIZ 315:34

    Configure tempdb for optimal performance by sizing and adding data files based on CPU cores, enabling auto growth, and placing data and log on separate drives to support temporary objects.

Requirements

  • You should have a good understanding of SQL Server Administration. I would highly recommend the following courses: Learn T-SQL from Scratch, SQL Administration part 1, SQL Administration part 2, SQL Administration part 3

Description

This course is designed for any student that is interested in learning about how to fine tune their SQL Server and databases.  Also, developers, SQL DBAs, IT staff and Network Administration

At the end of this course, the student will have extensive knowledge in the following areas:

Indexes, wait stats, fill factor, fragmentation, data and log file allocation, tempdb configuration, common performance issues, blocking, locking, database tuning advisor, execution plan, caching, virtualization and much more

You should have a good understanding of SQL Server Administration.  I would highly recommend the following courses: Learn T-SQL from Scratch, SQL Administration part 1, SQL Administration part 2, SQL Administration part 3

Who this course is for:

  • This course is designed for any student that is interested in learning about how to fine tune their SQL Server and databases. Also, developers, SQL DBAs, IT staff and Network Administration