SQL Flow Field Guide

sys.sp_db_selective_xml_index

Check SQL Server version support in the source

spdbselectivexmlindex enables and disables selective XML index (SXI) functionality on a SQL Server database.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Not stated in the Microsoft summary.

Syntax at a glance

sys.sp_db_selective_xml_index
    [ [ @dbname = ] N'dbname' ]
    [ , [ @selective_xml_index = ] 'selective_xml_index' ]
[ ; ]

Work example

spdbselectivexmlindex enables and disables selective XML index (SXI) functionality on a SQL Server database.

Read the syntax and examples. Explain each argument and its effect before writing a call.

Check your work Which inputs are required, and what result or effect does the page document?

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