update statistics commands

The update statistics commands create statistics, if there are none for a particular column, or replaces existing statistics. Statistics are stored in the systabstats and sysstatistics system tables:

update statistics table_name
[[ partition data_partition_name ] [ (column_list ) ] |
index_name [ partition index_partition_name ] ] 
[ using step values ]
[ with consumers = consumers] [, sampling=percent]

        update index statistics
table_name [[ partition data_partition_name ] |
[ index_name [ partition index_partition_name ] ] ]
[ using step values ]
[ with consumers = consumers] [, sampling=percent]

        update all statistics table_name
[ partition data_partition_name ]
[ sp_configure histogram tuning factor, <value>

        update table statistics
table_name [partition data_partition_name ]

        delete [ shared ] statistics table_name
[ partition data_partition_name ] 
[( column_name[, column_name ] ...)]