
Learn to explore SQL Server indexing by building clustered and non-clustered indexes, comparing heaps, and evaluating predicates, density, and leftmost column ordering for efficient queries.
Explore how heaps are implemented on the escrowed server, including data pages and the index allocation map, and why table scans on heaps provide poor performance and should be avoided.
Understand included columns in non-clustered indexes and how they carry payload data. Attached columns are not part of the index and can change without resorting.
Examine how data insertion causes page splits and fragmentation that affect clustered and non-clustered indices, and how reorganize or rebuild via Management Studio mitigates this when fragmentation reaches 10 percent.
See how the Microsoft SQL Server optimizer builds execution plans for queries, uses statistics and cardinality to decide index usage, and stores costed plans in the plan cache.
Explore operators in execution plans, including filter, scan, and sort operators, and join types like merge join, nested loop, and hash match, with notes on missing indexes.
Learn how statistics power cardinality estimation and affect query plans, and how outdated index statistics mislead the optimizer into suboptimal executions; manual updates with Espey underscore updates are possible.
Merge and prune SQL Server indices by checking containment and field order to remove redundant ones. Balance fewer columns with order relevance and included columns to align with query needs.
Over time, databases continue to grow – and with that, problems begin to emerge. Query response times get slower and slower, and eventually users feel like they’re waiting forever for results.
Indexes can make a significant difference here. They act as accelerators by helping the database engine navigate efficiently through large amounts of data. This allows queries to return results much faster and can dramatically reduce response times. In real-world scenarios, it’s not uncommon for one or two well-designed indexes to reduce query execution time from several hours to just a few minutes.
This improvement doesn’t only affect performance – it also impacts hardware requirements. Systems can often be scaled down, or existing resources can be used far more efficiently.
Despite this enormous potential, solid knowledge of indexes and how to use them effectively is surprisingly rare.
In this course, you will learn what indexes are and how to apply them properly. We will explore the different types of indexes in detail and take a closer look at execution plans to understand how the database engine works internally.
By the end of this course, you will be able to analyze the performance of your SQL Server environment and make well-founded decisions about optimizations.
If you apply what you learn, this knowledge can also give you a strong advantage in your next salary negotiation.