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

When Are Statistics Updated? What Triggers an Automatic Update

Statistics updated automatically need two things: enough changed rows, and a query that uses the statistic. This post explains the old 500 plus 20 percent rule and the newer square root threshold, then shows a million-row demo where last_updated changes only after a query compiles. It also covers FULLSCAN, asynchronous updates and when to update by hand.

Continue Reading