A restaurant kitchen set up for a quiet night with twelve plates under a chalkboard reading PREP FOR 12, while the ticket rail above the pass overflows with orders

Outdated Statistics in SQL Server: The Optimizer Is Planning for Last Year

Outdated statistics in SQL Server can slow a query even when its code has not changed. On SQL Server 2025 with the legacy estimator, a stale statistic sent one join to 120,043 logical reads, and a targeted update brought it down to 18,220. Auto update helps, but it waits for a threshold, it samples, and it knows nothing about the rows that arrived today.

Read More
Diagram of the four steps to restore a sample database: download, move the file, ask the file with RESTORE FILELISTONLY, restore with MOVE; with error 3201 and error 3156 called out, and the measured restore times of 1 second for AdventureWorks2025 and 9 seconds for WideWorldImporters

Install AdventureWorks and WideWorldImporters: Updated 2026

Install AdventureWorks and WideWorldImporters once, the right way. Which file to download for your SQL Server, where to put it so the service account can read it, the RESTORE FILELISTONLY step, restore scripts for T-SQL, SSMS, Docker and Linux, and the five errors people email me about. Every command was run on SQL Server 2025.

Read More