SQL Flow Field Guide

xml_schema_namespace

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

schema collection metadata

What changes

Input
XML schema collection
Output or change
xml document of the schemas
Return type
xml

Syntax at a glance

xml_schema_namespace( Relational_schema , XML_schema_collection_name , [ Namespace ] )

Work example

Inspect a registered XML schema collection when working with typed XML.

Check schema collection ownership and versioning before using its definition in a deployment script.

Check your work The function reads an existing schema collection and does not create or validate one by itself.

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