September 16, 2005 at 3:35 pm
Our system DBA told me the size and dependency data in the system tables is not reliable. I was thrilled with this script until I heard that.
Could someone explain to me why this is true?
September 16, 2005 at 3:43 pm
The data in the system tables that indicates # of rows is not kept up to date real time, it is only updated when statistics are updated.
So the numbers will be correct only immediatelly after updating statistics. otherwise they are only used as "Estimates" for the query optimizer.
Hence the reason you have to update stats when query plans are not efficient. Especially if the db option autoupdate stats is off.
September 16, 2005 at 3:46 pm
Thanks. We update rowcount stats nightly. He says this is something else.
September 19, 2005 at 4:59 pm
Well, if you update stats, and records continue to pour into the table, the stats are a point in time count. Not a running count.
This thread basically covers it. http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=8593&p=3
Or this
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=15620&p=1
Good Reading
http://www.sqlservercentral.com/columnists/aLohia/findingtablespace.asp
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply