Search

Thursday, July 28, 2011

code to run updateusage against all databases

exec sp_msforeachdb 'DBCC UPDATEUSAGE(?)'

1 comment:

  1. thanks, you may go through the following link. which explains when to run this DBCC UPDATEUSAGE:
    http://www.sqlmvp.org/running-dbcc-updateusage-in-sql-server/

    ReplyDelete