Measure before changing anything
Slow applications are often blamed on the database, and slow databases are often blamed on the server. Neither assumption helps. SQL Server performance tuning starts with a baseline: which business task is slow, at what time, with how much data, and how long it takes. Query Store, the plan cache and wait statistics then show which queries consume the time.
This is how our SQL Server performance tuning service begins: with the workload, not a guess.
1 and 2: missing indexes and stale statistics
A query that scans a large table to return a handful of rows usually lacks a suitable index. The fix is a well-chosen index on the filtered and joined columns, with included columns where it avoids key lookups, not one index per missing-index suggestion, because every index slows writes.
Statistics tell the optimizer how many rows to expect. When they are stale after large data changes, estimates go wrong and the optimizer picks a poor plan. Check when statistics were last updated on the tables involved, and consider more frequent updates for tables that change quickly.
3: parameter sniffing
SQL Server compiles a stored procedure's plan for the first parameter values it sees and reuses it. When data is skewed, the plan that suits a small customer can be disastrous for a large one, which is why the same procedure is fast one day and slow the next.
Fixes depend on the case: OPTION (RECOMPILE) for occasional queries, OPTIMIZE FOR hints, splitting procedures by data shape, or Query Store plan forcing when a known good plan exists. Restarting the server or clearing the plan cache only hides the problem until it returns.
4 and 5: non-sargable filters and implicit conversions
Wrapping a column in a function, such as WHERE YEAR(OrderDate) = 2026, stops SQL Server from seeking on an index. Rewrite it as a range on the column itself. Leading wildcards in LIKE patterns have the same effect.
Implicit conversions happen when a parameter's data type does not match the column, for example an NVARCHAR parameter compared with a VARCHAR column. The plan shows a CONVERT_IMPLICIT warning, and the index on that column may be ignored. Match the types in the application or procedure.
6 and 7: blocking and memory spills
Sometimes a query is not slow at all; it is waiting. Long transactions, missing indexes on foreign keys and large updates hold locks that block readers. Wait statistics and blocking reports show who is waiting on whom. Shorter transactions, better indexes and, where appropriate, read committed snapshot isolation reduce it.
Sorts and hash joins that receive too small a memory grant spill to tempdb and slow down sharply. Spills usually trace back to poor estimates, so they are often fixed by the statistics and query changes above.
If your reports or screens are slow, a fixed-scope SQL health check finds which of these causes applies, from $199. Slow reports may also benefit from reporting modernization. Before hiring anyone, read what a database optimization service should include.
- Baseline the slow task
- Find the top queries by duration and waits
- Check indexes and statistics
- Look for parameter sniffing and plan changes
- Fix non-sargable filters and type mismatches
- Investigate blocking and spills
- Validate against the baseline
Frequently asked questions
What is parameter sniffing in SQL Server?
SQL Server builds a plan using the first parameter values a procedure receives and reuses it. If later values need very different amounts of data, the reused plan can be slow. It is fixed case by case, for example with recompilation, hints or plan forcing.
Will adding more indexes make SQL Server faster?
Not always. The right index can transform a query, but every index adds cost to inserts and updates. Indexes should be chosen against the real workload.
Do we need a bigger server?
Hardware is rarely the first fix. A measured review usually finds query, index or design changes that should be made before buying capacity.