SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Statistics Outdated


Statistics Outdated

Author
Message
Site Owners
Site Owners
SSC-Dedicated
SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)

Group: Administrators
Points: 33029 Visits: 276
Comments posted to this topic are about the item Statistics Outdated
MadAdmin
MadAdmin
SSCrazy Eights
SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)SSCrazy Eights (8.5K reputation)

Group: General Forum Members
Points: 8476 Visits: 2039
Just wondering what these stats would be used for.
Cos if stats are outdated then that implies they are not being used, since queries would start the process of autorecomputing stats, if it is enabled, and the stats are used in that query.
So this could be a good script in finding stats that need to be dropped.

Catch-all queries done right
Gail Shaw's Performance Blog
Chris Harshman
Chris Harshman
One Orange Chip
One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)

Group: General Forum Members
Points: 29692 Visits: 6380
If statistics are out of date, that does NOT mean that they aren't being used, that typically means that the table they are on is large enough that SQL Server's built in rule about only autoupdating statistics after 20% modifications doesn't kick in frequently enough. If a table has 10,000,000 rows in it, autoupdate of statistics won't happen until after 2,000,000 rows have been inserted/updated.
https://www.sqlskills.com/blogs/erin/understanding-when-statistics-will-automatically-update/

There were some changes to this behavior introduced in SQL Server 2016:
https://www.brentozar.com/archive/2016/03/changes-to-auto-update-stats-thresholds-in-sql-server-2016/
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search