August 10, 2011 at 4:32 am
Hi,
DBCC SHOW_STATISTICS
Result is showing Rows and sampled rows are not matched after UPDATE STATISTICS command.
Rows sampled - rows counted insert/update/delete since last update stats.
could anyone provide me script for hole database DBCC SHOW_STATISTICS STATS_HEADER information?
Thanks
August 10, 2011 at 5:09 am
you may want to try sp_updatestatistics @resample='resample'
and/or dbcc updateusage(0) with count_rows;
[font="Comic Sans MS"]The GrumpyOldDBA[/font]
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/
August 10, 2011 at 8:54 am
colin.Leversuch-Roberts (8/10/2011)
you may want to try sp_updatestatistics @resample='resample'and/or dbcc updateusage(0) with count_rows;
Update Usage has nothing to do with statistics. It fixes space-used errors in the PFS pages.
UPDATE STATISTICS <table name> WITH FULLSCAN will force a full scan. sp_updatestatistics @resample='resample' uses the sampling rate of the previous update.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply