From 2c2534ff3d221aed230eea2566be1da040a9b610 Mon Sep 17 00:00:00 2001 From: Oladele Oluwaseun Date: Wed, 12 Aug 2026 23:11:33 +0100 Subject: [PATCH] docs: add partition truncation tip to ALTER TABLE reference Adds a tip cross-referencing TRUNCATE TABLE ... WITH (PARTITIONS (...)) for users seeking partition truncation syntax on SQL Server. --- docs/t-sql/statements/alter-table-transact-sql.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/t-sql/statements/alter-table-transact-sql.md b/docs/t-sql/statements/alter-table-transact-sql.md index 9a202ae754a..16481e8428d 100644 --- a/docs/t-sql/statements/alter-table-transact-sql.md +++ b/docs/t-sql/statements/alter-table-transact-sql.md @@ -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**