Export (0) Print
Expand All

sys.xml_schema_namespaces (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns a row per XSD-defined XML namespace. The following tuples are unique: collection_id, namespace_id, and collection_id, and name.

Applies to: SQL Server (SQL Server 2008 through current version).

Column name

Data type




ID of the XML schema collection that contains this namespace.


nvarchar (4000)

Name of XML namespace. Blank name indicates no target namespace.



1-based ordinal that uniquely identifies the XML namespace in the database.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft