Online Documentation for SQL Administrator for SQL Server

Update statistics


Use the Update Statistics Task dialog to update Microsoft SQL Server information about the data in the tables and indexes.

The General tab allows you to set common properties for this task. To set relationships between tasks use the Precedence constraints tab.

 

Maintenance plans - Maintenance Plan Editor - Managing tasks - Update statistics

 

 

Name

Enter the update statistics task name.

 

!CheckBox Enabled

Check this option to enable task execution.

 

Connection

Specify which server connection should be used for task execution. You can choose among existing connections or create a new one.

 

Database(s)

Use the drop-down list to specify the databases witch will be affected by the task.

  • All databases

Generate a maintenance plan that runs maintenance tasks against all Microsoft SQL Server databases except tempdb.

  • All system databases

Generate a maintenance plan that runs maintenance tasks against each of the SQL Server system databases except tempdb. No maintenance tasks are run against user-created databases.

  • All user databases

Generate a maintenance plan that runs maintenance tasks against all user-created databases. No maintenance tasks are run against the SQL Server system databases.

If you choose Select databases... item or click the ellipsis Ellipsisbtn button then define databases using the Select databases dialog.

 

Object(s)

If you have chosen a single database in the Database(s) field then you are to define the objects (tables or views) which statistics you want to be update. The drop-down menu contains the following items: All tables and views, All tables, All views, Select... .

If you choose the latter item or click the ellipsis Ellipsisbtn button then define tables and views using the Select Tables/Views dialog.

 

Specify whether you want to !RadioButton Update column and index statistics, !RadioButton Update column statistics only or !RadioButton Update index statistics only.

 

Select the type of scan used to gather updated statistics.

!RadioButton Perform full scan

Read all rows in the table or view to gather the statistics.

 

Sample by n percent of rows

Specify the percentage of the table or indexed view to sample when collecting statistics for larger tables or views.

 

Sample by n rows

Specify the number of rows to sample when collecting statistics for larger tables or views.

 

 


See also:

Backup database

Check database

Rebuild indexes

Reorganize indexes

Shrink database

Execute job

Execute T-SQL statement

Notify operator

Clean up history

Clean up maintenance log

Precedence constraints