SQL Flow Field Guide

ALTER PARTITION FUNCTION

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes partitioning metadata

What changes

Input
catalog
Output or change
partition function (boundary values) or scheme (filegroup map)

Syntax at a glance

ALTER PARTITION FUNCTION partition_function_name() { SPLIT RANGE ( boundary_value ) | MERGE RANGE ( boundary_value ) } [ ; ]

Work example

A partition boundary needs a split or merge for a scheduled data movement.

Check range values, aligned indexes, filegroup capacity, and rows on the boundary before changing it.

Check your work Boundary rows remain in the intended partition and the operation fits the maintenance window.

Open Microsoft Learn for full syntax, permissions, and details for your version.