Why do we need to run dbcc updateusage(0)
after restoring a SQL Server database on a different server? What are the implications of not running it?
Why do we need to run dbcc updateusage(0)
after restoring a SQL Server database on a different server? What are the implications of not running it?
You don't need to run dbcc updateusage after you restore a database. The only time that you need to run this DBCC statement is if the output from sp_spaceused isn't being reported correctly or if some of the reports in SSMS (or third party tools) aren't showing the space usage for the database correctly.