Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions docs/t-sql/statements/alter-index-transact-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: "ALTER INDEX (Transact-SQL)"
description: Modifies an existing table or view index (rowstore, columnstore, or XML) by disabling, rebuilding, or reorganizing the index; or by setting options on the index.
author: rwestMSFT
ms.author: randolphwest
ms.reviewer: wiassaf, randolphwest, dfurman
ms.date: 04/14/2025
ms.reviewer: wiassaf, dfurman
ms.date: 01/05/2026
ms.service: sql
ms.subservice: t-sql
ms.topic: reference
Expand Down Expand Up @@ -63,10 +63,11 @@ Syntax for SQL Server, Azure SQL Database, and Azure SQL Managed Instance.
```syntaxsql
ALTER INDEX { index_name | ALL } ON <object>
{
REBUILD {
[ PARTITION = ALL [ WITH ( <rebuild_index_option> [ , ...n ] ) ] ]
REBUILD [
[ WITH ( <rebuild_index_option> [ , ...n ] ) ]
| [ PARTITION = ALL [ WITH ( <rebuild_index_option> [ , ...n ] ) ] ]
| [ PARTITION = partition_number [ WITH ( <single_partition_rebuild_index_option> [ , ...n ] ) ] ]
}
]
| DISABLE
| REORGANIZE [ PARTITION = partition_number ] [ WITH ( <reorganize_option> ) ]
| SET ( <set_index_option> [ , ...n ] )
Expand Down Expand Up @@ -147,10 +148,11 @@ Syntax for Azure Synapse Analytics and Analytics Platform System (PDW).
ALTER INDEX { index_name | ALL }
ON [ schema_name. ] table_name
{
REBUILD {
[ PARTITION = ALL [ WITH ( <rebuild_index_option> ) ] ]
REBUILD [
[ WITH ( <rebuild_index_option> [ , ...n ] ) ]
| [ PARTITION = ALL [ WITH ( <rebuild_index_option> ) ] ]
| [ PARTITION = partition_number [ WITH ( <single_partition_rebuild_index_option> ) ] ]
}
]
| DISABLE
| REORGANIZE [ PARTITION = partition_number ]
}
Expand Down