Skip to content
Open
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
3 changes: 3 additions & 0 deletions docs/t-sql/statements/alter-table-transact-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,9 @@ A partitioned table with a clustered columnstore index behaves like a partitione

For `SWITCH` restriction when using replication, see [Replicate Partitioned Tables and Indexes](../../relational-databases/replication/publish/replicate-partitioned-tables-and-indexes.md).

> [!TIP]
> To truncate all rows from specific partitions without dropping or switching partitions, use [TRUNCATE TABLE](truncate-table-transact-sql.md) with the `WITH (PARTITIONS (...))` clause instead of `ALTER TABLE`.

Nonclustered columnstore indexes were built in a read-only format before [!INCLUDE [sssql16-md](../../includes/sssql16-md.md)] and for SQL Database before version V12. You must rebuild nonclustered columnstore indexes to the current format (which is updatable) before any `PARTITION` operations can be run.

**Limitations**
Expand Down