DBCC SHOW_STATISTICS, Rows and sampled Rows are not match

  • 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

  • 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/

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply