Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3421302
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:05:33+00:00 2026-05-18T06:05:33+00:00

In the system I’m working on, we were seeing a particular SELECT use a

  • 0

In the system I’m working on, we were seeing a particular SELECT use a clustered index scan, instead of using the index which was created for this SELECT. I took a look at the statistics for the index, and found that they were 26 days old. I updated the statistics with FULLSCAN. Now the SELECT is using the index.

AUTO_UPDATE_STATISTICS has been enabled in this database the entire time. Why did the statistics not get updated?

Looking at the STATS_DATE() output (query below):

SELECT 
    object_name = Object_Name(ind.object_id),
    IndexName = ind.name,
    StatisticsDate = STATS_DATE(ind.object_id, ind.index_id),
    ind.type
  FROM SYS.INDEXES ind
  order by STATS_DATE(ind.object_id, ind.index_id) desc

I see that many indexes were updated recently. Some large tables which have data updates every day have not had updated statistics in weeks.

How does MSSQL 2005 decide when to update statistics when AUTO_UPDATE_STATISTICS is enabled? The documentation states:

A statistics update is initiated whenever the statistics used in a query execution plan fail a test for current statistics. . . Almost always, statistical information is updated when approximately 20 percent of the data rows has changed.

Can this be trusted? Perhaps these tables are so large that the “current statistics test” is passing even though records are being inserted on a daily basis.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:05:34+00:00Added an answer on May 18, 2026 at 6:05 am

    Here’s a link to the algorithm details in a Microsoft whitepaper

    http://technet.microsoft.com/sv-se/library/cc966419(en-us).aspx#XSLTsection130121120120

    And this quoted from Erland Sommarskog:

    When you have an empty table,
    autostats first kicks in after 500
    rows. From there, autostats sets in
    when 20% of the rows have been
    modified. This is measure from some
    rowmodctr.

    This has the effect that big tables
    with a monotonously growing key where
    queries goes against the trunk have
    their statistics updated far too
    rarely.

    Whereas small tables where all rows
    are updated frequently, or where or
    rows are added and deleted, have their
    stats updated very often, which may
    cause recompilation issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System.Threading.WaitHandle (and hence ManualResetEvent etc) implement IDisposable explicitly. This seems to discourage it's use
System.BitArray only implements the non-generic IEnumerable, which returns an Object for the IEnumerator.Current property.
System.Environment.OSVersion does not appear to indicate which Edition of Windows 2003 is installed (Standard,
System.out.println( Arrays.deepToString( abc<def>ghi.split((?:<)|(?:>)) ) ); This prints [abc, def, ghi] , as if I
System.Text.RegularExpressions.Regex(#*#) is this correct..!? my text can be like #abc1234+as00# etc. ie, anything between
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
System A captures X information from users via UI. This information is validated and
Using system() or exec() , I can get any command to execute but they
System specs: C# client using .NET 3.0. WCF services hosted as windows services on
System.Xml.XmlException: Name cannot start with the character 9, hexadecimal value 0x39 Is this because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.