--- title: "sys.xml_schema_collections (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql" ms.prod_service: "database-engine, sql-database" ms.service: "" ms.component: "system-catalog-views" ms.reviewer: "" ms.suite: "sql" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "sys.xml_schema_collections_TSQL" - "sys.xml_schema_collections" - "xml_schema_collections" - "xml_schema_collections_TSQL" dev_langs: - "TSQL" helpviewer_keywords: - "sys.xml_schema_collections catalog view" ms.assetid: f3f7f3dc-029f-4942-ab3c-75fa9814e40f caps.latest.revision: 34 author: "douglaslMS" ms.author: "douglasl" manager: "craigg" ms.workload: "Inactive" monikerRange: "= azuresqldb-current || >= sql-server-2016 || = sqlallproducts-allversions" --- # sys.xml_schema_collections (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-asdb-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-asdb-xxxx-xxx-md.md)] Returns a row per XML schema collection. An XML schema collection is a named set of XSD definitions. The XML schema collection itself is contained in a relational schema, and it is identified by a schema-scoped [!INCLUDE[tsql](../../includes/tsql-md.md)] name. The following tuples are unique: xml_collection_id, and schema_id and name. |Column name|Data type|Description| |-----------------|---------------|-----------------| |xml_collection_id|**int**|ID of the XML schema collection. Unique within the database.| |schema_id|**int**|ID of the relational schema that contains this XML schema collection.| |principal_id|**int**|ID of the individual owner if different from the schema owner. By default, schema-contained objects are owned by the schema owner. However, an alternate owner may be specified by using the ALTER AUTHORIZATION statement to change ownership.

NULL = No alternate individual owner.| |name|**sysname**|Name of the XML schema collection.| |create_date|**datetime**|Date the XML schema collection was created.| |modify_date|**datetime**|Date the XML schema collection was last altered.| ## Permissions [!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md). ## See Also [Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/catalog-views-transact-sql.md) [XML Schemas (XML Type System) Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/xml-schemas-xml-type-system-catalog-views-transact-sql.md) [Querying the SQL Server System Catalog FAQ](../../relational-databases/system-catalog-views/querying-the-sql-server-system-catalog-faq.md)