--- title: "sys.xml_indexes (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "sql-non-specified" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "sys.xml_indexes_TSQL" - "xml_indexes_TSQL" - "sys.xml_indexes" - "xml_indexes" dev_langs: - "TSQL" helpviewer_keywords: - "sys.xml_indexes catalog view" ms.assetid: 3408de72-b067-4fda-b5d5-8e856dfd9db3 caps.latest.revision: 34 author: "BYHAM" ms.author: "rickbyh" manager: "jhubbard" --- # sys.xml_indexes (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx_md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Returns one row per XML index. || |-| |**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssKatmai](../../includes/sskatmai-md.md)] through [current version](http://go.microsoft.com/fwlink/p/?LinkId=299658)), [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)].| |Column name|Data type|Description| |-----------------|---------------|-----------------| |**\**||Inherits columns from [sys.indexes](../../relational-databases/system-catalog-views/sys-indexes-transact-sql.md).| |**using_xml_index_id**|**int**|NULL = Primary XML index.

Nonnull = Secondary XML index.

Nonnull is a self-join reference to the primary XML index.| |**secondary_type**|**char(1)**|Type description of secondary index:

P = PATH secondary XML index

V = VALUE secondary XML index

R = PROPERTY secondary XML index

NULL = Primary XML index| |**secondary_type_desc**|**nvarchar(60)**|Type description of secondary index:

PATH = PATH secondary XML index

VALUE = VALUE secondary XML index

PROPERTY = PROPERTY secondary xml indexes.

NULL = Primary XML index| |**xml_index_type**|**tinyint**|Index type:

0 = Primary XML index

1 = Secondary XML index

2 = Selective XML index

3 = Secondary selective XML index| |**xml_index_type_description**|**nvarchar(60)**|Description of index type:

PRIMARY_XML

Secondary XML Index

Selective XML Index

Secondary Selective XML index| |**path_id**|**int**|NULL for all XML indexes except secondary selective XML index.

Else, the ID of the promoted path over which the secondary selective XML index is built. This value is the same value as path_id from sys.selective_xml_index_paths system view.| ## 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) [Object Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/object-catalog-views-transact-sql.md)