x
login about faq Site discussion (meta-askssc)

Information in index system views with auto update statistics turned off

We know that the system views hold good information about indexes. But if the system isn't set to automatically update statistics, can we trust the information in there, such as the number of rows in an index, etc?

PS: If you're reading this, then I encourage you to come with a good seeder question and post it too! Without good questions, the site will never catch on as a useful resource.

more ▼

asked Oct 21 '09 at 10:56 PM in Default

Rob Farley gravatar image

Rob Farley
5.7k 13 17 19

I wanted to make a tag for statistics, but didn't have enough points... Thanks for retagging.

Oct 22 '09 at 08:55 AM Rob Farley
(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

If the system is not updating the statistics automatically and you're not running a manual process to get the statistics updated, then no, you can't trust them. What's more, you can't trust the execution plans that running against your system to return your data because those execution plans are completely dependent on the stats being up to date and accurate.

more ▼

answered Oct 22 '09 at 08:05 AM

Grant Fritchey gravatar image

Grant Fritchey ♦♦
62.3k 12 20 66

Your queries should still work, just not so likely to use the ideal plan. Once the plan is decided upon, the system will still go to the data, even though it doesn't know how that data is distributed.

Oct 22 '09 at 08:53 AM Rob Farley

Right. The queries will return data, and the correct data too. But the queries will in all likelihood perform very badly because the execution plans will be so out of wack due to the lack of statistics.

Oct 22 '09 at 08:49 PM Grant Fritchey ♦♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x272
x111
x30
x27
x9

asked: Oct 21 '09 at 10:56 PM

Seen: 994 times

Last Updated: Apr 15 '10 at 05:36 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.