SQL Flow Field Guide

GRANT XML Schema Collection Permissions

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

GRANT permissions on xml schema collection

What changes

Input
principal and securable names
Output or change
permission metadata

Syntax at a glance

GRANT permission [ ,...n ] ON XML SCHEMA COLLECTION :: [ schema_name . ] XML_schema_collection_name TO <database_principal> [ ,...n ] [ WITH GRANT OPTION ] [ AS <database_principal> ]

Work example

A caller needs a permission on a typed XML schema collection.

Match the permission to the procedure or column that validates the XML.

Check your work The intended caller uses valid typed XML and cannot alter the schema.

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