SQL Flow Field Guide

ALTER XML SCHEMA COLLECTION

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

changes xml schema collection (no row flow)

What changes

Input
catalog
Output or change
catalog: xml schema collection

Syntax at a glance

ALTER XML SCHEMA COLLECTION [ relational_schema. ]sql_identifier ADD 'Schema Component'

Work example

An XML schema collection needs a reviewed schema addition.

Test existing typed XML values against the new schema and trace every dependent column and parameter.

Check your work Valid documents remain valid and the intended new document shape passes validation.

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