Estimated rows and actual rows answer different questions.
The mechanism
SQL Server statistics help describe data distribution for cardinality estimation. A runtime mismatch is a reason to investigate, not automatic proof that statistics are stale.
An estimate describes an expectation
Consider a hypothetical plan investigation where an operation handles a different number of rows from the estimate used during optimisation. The difference is a useful question, not a complete diagnosis. Statistics describe aspects of data distribution and help the optimiser estimate cardinality, but a mismatch does not automatically mean that the statistics are stale. Keep freshness, sampling, predicates, correlation, parameters and the estimation model as possibilities to assess. The row shapes in the film are qualitative illustrations, not measured customer counts or a prediction about a particular database.
Begin with a representative business operation and the execution context that produced the observation. Ask where a meaningful divergence first appears and what evidence supports the explanation being considered. A large difference later in a plan may be easier to understand after examining the earlier work it depends on. Do not describe every estimate mismatch as an incident or assume every mismatch requires intervention. The question is whether the estimate and resulting plan choices help explain the relevant workload evidence, not whether every drawn number is identical.
Test an explanation before prescribing an update
A useful proposed assessment records the relevant query, input context, estimated and observed work, and the specific explanation under investigation. If a statistics-related change is proposed, state why that change is expected to address the evidence. Consider the alternatives rather than treating a blanket update as a universal repair. Actual diagnostic and change authority depends on the environment. This article does not execute an update, change an estimation model or claim that a customer’s problem has been traced to outdated statistics. It also does not provide a timeless maintenance threshold.
Agree what a later authorised comparison would need to show. Check the business result, the relevant execution evidence and material workload differences between runs. Preserve inconclusive outcomes and unexpected effects. For an executive, the important lesson is not that the optimiser guessed incorrectly and therefore needs a larger machine. It is that estimates and observations are different forms of evidence, and the relationship between them can narrow a properly scoped investigation. A defensible recommendation explains the actual discrepancy, the candidate cause and the result of an appropriate test without turning one plan observation into a guarantee about the whole application.
Keep the first meaningful divergence in the explanation, not only the largest difference on the page. State which observation would distinguish a distribution or parameter-related hypothesis from the assumption that every mismatch needs the same maintenance action.
Three checks before a change
- Compare estimated and actual rows.
- Inspect freshness, sampling and distribution.
- Check predicates, correlation and compatibility.
Keep the scope clear
Wrong estimates do not always mean stale statistics. The row shapes are illustrative, not customer counts.
Sources and credits
- Microsoft Learn: Statistics
- Microsoft Learn: Cardinality Estimation (SQL Server)
- Geist: SIL Open Font License 1.1
- GSAP Standard License
Technical concepts paraphrased from the primary Microsoft and/or AWS documentation linked above, by their respective publishers and contributors. The explanation, scenario and proposed project controls are independent Veltheon editorial work, not vendor quotations or instructions for a specific environment.
Original Veltheon educational film with AI-generated illustrative hardware and original logical diagrams, not vendor or customer footage, physical topology, measurements or verified results. Product names are used descriptively. No official product artwork or source-page layout is reproduced.
Rendered asset credits: project-supplied Veltheon identity; generated rack imagery; Geist 1.800 under SIL Open Font License 1.1; animation authored using GSAP 3.13.0 under its Standard License, not MIT. The film does not redistribute font or library binaries and contains no audio.
Independent Veltheon Field Notes. No Microsoft or AWS affiliation, sponsorship or endorsement. Microsoft, Azure, Dynamics 365, Business Central, Microsoft Entra and SQL Server are trademarks of the Microsoft group of companies. Amazon Web Services and AWS are Amazon trademarks. Other trademarks belong to their respective owners.
General information, not an assessment, security certification, compatibility approval or guaranteed operational or commercial outcome. Verify current support and procedures for the actual environment and obtain appropriate change approvals. Technical-source checks are not legal clearance; legal review has not been performed.