Impact of DBCC UPDATEUSAGE (0)

  • We got the advice to run DBCC UPDATEUSAGE, on one of our databases.

    What impact can be expected from this command?

    Can this be done online?

    Does this impact the servers performance?

    This is for a 2005 system, databasesize is 40 Gb.

    On a 2008 system a comparable database of 10 Gb was done in 10 secs.

    On a 2008 R2 system (small) a 200 Gb database was done in just under 6 minutes.

    Test for a 2005 system on the backup of the database is in preparation.

    thanks for your time and attention,

    Ben Brugman

  • ben.brugman (7/4/2013)


    Can this be done online?

    Ben Brugman

    Maybe not the correct question.

    If this is done online will this cause locks over a long duration ?

    Or does it just handle just one table at the time ?

    If only one table is blocked at the time, we have no real problems.

    ben

  • It only locks one table at a time (and I don't think it locks the full table either, but only the smallest index).

    Then again, there should rarely be any reason to run this command on SQL 2005 and later.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • Thanks, we went ahead with this with no problems.

    Thanks again for your input.

    Ben

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

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