Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Update statistics for all tables in any DB

By SanjayAttray, 2006/12/22

Most of the time even after executing dbcc dbreindex script on database you won't see much improvement in application/DB performance.  Thats because dbreindex creates statistics for all tables but it executes sp_updatestats which is like sample statistics.

To get the maximum performance we had to execute Update statistics with fullscan on table. This simple will update statistics of all tables in any given database.

Total article views: 5845 | Views in the last 30 days: 35
 
Related Articles
FORUM

Object Execution Statistics Report in query

Object Execution Statistics Report in query

FORUM

Statistics

Experiments with multi-column statistics

FORUM

IO Statistics

IO Statistics

SCRIPT

Update Statistics - All Tables (No System)

This proc executing the update statistics command in all user tables (no system).

FORUM

STATISTICS in MS SQL

STATISTICS in MS SQL

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones