Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 21, 2014 2:19 AM
Points: 246, Visits: 1,166
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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 21, 2014 2:19 AM
Points: 246, Visits: 1,166
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


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: 2 days ago @ 2:28 PM
Points: 786, Visits: 691
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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 21, 2014 2:19 AM
Points: 246, Visits: 1,166
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