Home > SQL Server Internals, Update Statistics (Full TableScan) > Updating Index Statistics With Full Table Scan

Updating Index Statistics With Full Table Scan

How to Update Index Statistics of a table with Full Table Scan.

UPDATE STATISTICS dbo.Tablename WITH FULLSCAN

The following example updates the table statistics group (collection) in the given table, forces a full scan of all rows in the given table, and re-enables automatic statistical updating on the table.

In case u does not want to enable automatic statistical updating use NORECOMPUTE option to disable the same.

UPDATE STATISTICS dbo.Tablename WITH FULLSCAN NORECOMPUTE

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: