Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Impact of DBCC UPDATEUSAGE (0) Expand / Collapse
Author
Message
Posted Thursday, July 4, 2013 3:17 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, May 3, 2016 9:55 AM
Points: 398, Visits: 1,904
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




Post #1470354
Posted Thursday, July 4, 2013 8:10 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, May 3, 2016 9:55 AM
Points: 398, Visits: 1,904
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
Post #1470449
Posted Thursday, July 4, 2013 3:24 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Saturday, April 9, 2016 11:35 AM
Points: 878, Visits: 841
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.


Erland Sommarskog, SQL Server MVP, www.sommarskog.se
Post #1470515
Posted Friday, July 12, 2013 9:31 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, May 3, 2016 9:55 AM
Points: 398, Visits: 1,904
Thanks, we went ahead with this with no problems.
Thanks again for your input.
Ben
Post #1473111
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse