SQL Flow Field Guide

XML Data Modification Language (XML DML)

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

none (documentation, rules or examples)

What changes

Input
none
Output or change
none

Syntax at a glance

n/a (reference page)

Work example

Make a controlled insert, delete, or value replacement inside an XML instance.

Start with a variable copy, select one target node, and verify the result before applying a row update.

Check your work XML DML changes an XML value through modify and each operation has its own target rules.

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