Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
 DROP STATISTICS (SQL Server Compact...
Collapse All/Expand All Collapse All
Other versions are also available for the following:
SQL Server Compact 3.5 Service Pack 1 Books Online
DROP STATISTICS (SQL Server Compact)

Drops statistics for the specified table and index.

DROP STATISTICS ON < table_name > [ . <index_name> ]
table_name

Specifies the name of the table to drop the statistics from.

index_name

The index to drop the statistics from. If no index is specified, the statistics are dropped for all indexes in the table.

The following example demonstrates how to drop an index, create an index, and drop statistics for a specified table and index.

DROP INDEX Orders.emp_id_ind;
CREATE INDEX emp_id_ind ON Orders ([Employee ID]);
DROP STATISTICS ON Orders.emp_id_ind;
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker