SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

Cardinality Estimation and Performance: SQL in Sixty Seconds #072

Cardinality estimation and performance depend on each other: the optimizer guesses a row count, and that guess picks the plan and sets the reads. This post tests one query under the old and the new estimator on SQL Server 2025, shows where the new guess wins and where it loses, and explains how to switch estimators with the smallest possible change.

Continue Reading