Online Class • Advanced Lesson
In this lesson, you will learn the SQL Server configuration decisions that matter most in real environments.
You will also learn the “do it safely” mindset: how to change settings with evidence, how to validate impact,
and how to avoid common mistakes that cause outages. This is the lesson that separates random tuning from
professional DBA engineering.
SQL Server performance is not only about queries and indexes. Instance settings, TempDB design, database file layout,
maintenance strategy, and workload governance can decide whether an environment stays stable under growth or collapses
under peak load. This lesson covers:
which settings matter, why they matter, when to change them,
and how to avoid tuning by copying internet “best settings.”
Configuration tuning is powerful but risky. A correct setting improves performance and stability.
A wrong setting can slow everything down or create unpredictable behavior.
Professional DBAs use a disciplined process:
baseline → evidence → change one thing → validate → document → monitor.
120–180 minutes (deep lecture + checklist lab)
Configuration changes affect the entire instance. You can improve thousands of queries—or break thousands of queries.
These rules prevent disasters.
Key teaching point: “Best settings” are not universal. They depend on workload, hardware, concurrency,
storage, and business SLAs. Copy/paste tuning is one of the top causes of performance instability.
If you learn only three configuration areas in this lesson, learn these. These settings have the biggest impact in real environments:
memory and parallelism.
SQL Server will use as much memory as it can for caching and execution. If you do not set max server memory correctly,
SQL Server may starve the operating system and other apps, causing system-level instability.
Safe DBA guidance: Always reserve memory for the OS and other services.
The exact value depends on server RAM and workload—do not guess. Measure and adjust.
MAXDOP controls how many CPU cores SQL Server can use for a single query. Parallelism can make large queries faster,
but it can also cause CPU storms and reduce concurrency (one query uses many cores, leaving fewer cores for others).
Safe DBA guidance: MAXDOP must match workload type (OLTP vs reporting), core count, and concurrency.
You decide based on evidence—not by copying a number.
This setting determines when SQL Server considers a parallel plan. If it’s too low, many small queries go parallel and can create
CPU instability. If it’s too high, large queries may not benefit from parallel execution.
Key teaching point: Cost threshold is not “query time in seconds.” It’s an internal optimizer cost unit.
DBAs tune it using evidence and workload behavior, not assumptions.
TempDB is used for sorting, hashing, versioning (depending on isolation), spills, temporary objects, row version store,
and many internal operations. When TempDB is not configured well, you can see severe performance issues even if queries are “fine.”
Key teaching point: Many “mystery slowdowns” are actually TempDB spills from sorts/hashes due to
memory pressure or bad estimates.
Poor file layout and growth settings are silent killers. Autogrowth can pause workloads, fragment files, and create unpredictable latency.
A strong DBA designs file growth so the system remains stable even as data grows.
Key teaching point: Many incidents happen because the log file grows unexpectedly or the disk fills up.
Preventive monitoring of growth is performance tuning.
SQL Server performance is not “set it and forget it.” As data changes, statistics and indexes change. Maintenance keeps the optimizer
accurate and keeps the system stable. However, maintenance can also create performance problems if done incorrectly.
Use this checklist as your “first day DBA” playbook. It helps you quickly assess stability risks and performance opportunities.
Students will create a short “DBA review report” for a SQL Server instance: key settings, risks, and recommended improvements.
This is exactly what DBAs do when they inherit a new environment.
Prompt:
“You inherit a SQL Server where performance is unstable under peak load. You suspect memory and parallelism settings.
What evidence would you collect before changing max server memory, MAXDOP, or cost threshold?
List at least three metrics or observations.”
In the next lesson, we go deeper into Managing Memory and Processor Resources in SQL Server.
We will break down how SQL Server uses memory (buffer pool, memory grants), how CPU scheduling works, what “runnable tasks” means,
and how to diagnose resource pressure with evidence-based methods.
Not a member yet? Register now
Are you a member? Login now