Skip to content
Closed
Changes from 2 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
14 changes: 8 additions & 6 deletions docs/t-sql/statements/alter-index-transact-sql.md
Original file line number Diff line number Diff line change
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