Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Impact of DBCC UPDATEUSAGE (0)


Impact of DBCC UPDATEUSAGE (0)

Author
Message
ben.brugman
ben.brugman
SSC-Addicted
SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)

Group: General Forum Members
Points: 466 Visits: 2226
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
ben.brugman
SSC-Addicted
SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)

Group: General Forum Members
Points: 466 Visits: 2226
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
Erland Sommarskog
Erland Sommarskog
SSC Eights!
SSC Eights! (931 reputation)SSC Eights! (931 reputation)SSC Eights! (931 reputation)SSC Eights! (931 reputation)SSC Eights! (931 reputation)SSC Eights! (931 reputation)SSC Eights! (931 reputation)SSC Eights! (931 reputation)

Group: General Forum Members
Points: 931 Visits: 866
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
ben.brugman
ben.brugman
SSC-Addicted
SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)SSC-Addicted (466 reputation)

Group: General Forum Members
Points: 466 Visits: 2226
Thanks, we went ahead with this with no problems.
Thanks again for your input.
Ben
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search