SQL Flow Field Guide

Guidelines for Using xml Data Type Methods

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

Choose XML methods that return the smallest shape needed by a relational query.

Filter with exist before extracting repeated values and compare a typed relational column when XML is not required.

Check your work Calling XML methods repeatedly for the same value can add parsing work to a large rowset.

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