Welcome to

SqlServer-QA.net

Sign in | Join | Help

SQL Server Storage Engine & Tools (SSQA.net)

SQL Server Tools includes storage engine that includes a complete set of graphical tools and command prompt utilities that allow users, programmers, and administrators. SSMS, SSRS, SSIS & SSAS are most commonly used tools.
How to get updated page or row count information for the current database?

DBCC UPDATEUSAGE (0);
GO

Best practice to use DBCC UPDATEUSAGE intermittently and must if you have upgraded the database from SQL 2000 to 2005. The usual working fashion of this DBCC statement is to correct the rows, used pages, reserved pages, leaf pages, and data page counts for each partition in a table or index. If there are no inaccuracies in the system tables, DBCC UPDATEUSAGE returns no data. If inaccuracies are found and corrected and you have not used WITH NO_INFOMSGS, DBCC UPDATEUSAGE returns the rows and columns being updated in the system tables.

But for more sensibility ensure to run during less traffic hours on the database to reduce the performance overhead.

Posted: Monday, August 13, 2007 7:00 AM by SQL Master

Comments

Other SQL Server Blogs around the Web said:

DBCC UPDATEUSAGE (0); GO Best practice to use DBCC UPDATEUSAGE i ntermittently and must if you have upgraded

# August 13, 2007 7:27 AM
Anonymous comments are disabled