How to update statistics (Query Analyzer)

To update statistics

  1. On the Query menu, click Show Execution Plan.
  2. Execute the Transact-SQL script in the query pane.
  3. In the result pane, click the Execution Plan tab.
  4. Right-click the icon of the physical operator that suggests that statistics need to be updated, and then click Manage Statistics.... The database and table that the Graphical Execution Plan suggests need updated statistics are automatically selected.
  5. Optionally, in Database and Table, click the name of a different database and table on which to update the statistics.
  6. Click Update....
  7. In Name, select the statistics to be updated.
  8. Optionally, in Amount of data to sample, select:
  9. Optionally, in Update statistics options, select:
  10. Optionally, click Edit SQL... to view and edit the Transact-SQL statement used to create or update the statistics.
See Also
Graphically Displaying the Execution Plan Using SQL Server Query Analyzer Statistical Information

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.