sp_optimize_text_index

Description

Performs optimization on a text index.

Syntax

sp_optimize_text_index index_table_name

Parameters

index_table_name

is the name of the text index you want to optimize. index_table_name has the form [dbname.[owner.]]table, where:

  • dbname is the name of the database containing the index table. If present, the owner or a placeholder is required.

  • owner is the name of the owner of the index table.

  • table is the name of the index table.

Examples

Example 1

Optimizes the text index i_blurbs to improve query performance:

sp_optimize_text_index "i_blurbs"

Usage

Messages

Permissions

Any user can execute sp_optimize_text_index.

See also

“Updating existing indexes”