SQL Flow Field Guide

ALTER TABLE ... ADD

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

adds columns or constraints

What changes

Input
table definition
Output or change
new column or constraint (existing rows get the default or NULL)

Syntax at a glance

ALTER TABLE table ADD { <column_definition> | <computed_column_definition> | <table_constraint> } [ ,...n ]

Work example

A new table column needs a display mask for restricted callers.

Test the mask as a low-privilege user and review exports, filters, and privileged access.

Check your work The restricted user sees the chosen mask while the authorized owner can validate the stored value.

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