Expand Minimize
1 out of 1 rated this helpful - Rate this topic

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;
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.