--- title: "Index Element (DTA)" ms.prod: sql ms.prod_service: sql-tools ms.technology: tools-other ms.topic: conceptual dev_langs: - "XML" helpviewer_keywords: - "Index element (DTA)" ms.assetid: 447d3964-b387-40f6-9189-71386774c29e author: markingmyname ms.author: maghan ms.manager: jroth ms.reviewer: "" ms.custom: seo-lt-2019 ms.date: 03/14/2017 --- # Index Element (DTA) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] Contains information about an index that you want to create or drop for a user-specified configuration. ## Syntax ``` ``` ## Element Attributes |Index attribute|Data type|Description| |---------------------|---------------|-----------------| |**Clustered**|**boolean**|Optional. Specifies a clustered index. Set to either "true" or "false", for example:

``

By default, this attribute is set to "false".| |**Unique**|**boolean**|Optional. Specifies a unique index. Set to either "true" or "false", for example:

``

By default, this attribute is set to "false".| |**Online**|**boolean**|Optional. Specifies an index that can perform operations while the server is online, which requires temporary disk space. Set to either "true" or "false", for example:

``

By default, this attribute is set to "false".

For more information, see [Perform Index Operations Online](../../relational-databases/indexes/perform-index-operations-online.md).| |**IndexSizeInMB**|**double**|Optional. Specifies the maximum size of the index in megabytes, for example:

``

No default setting.| |**NumberOfRows**|**integer**|Optional. Simulates different index sizes, which effectively simulates different table sizes, for example:

``

No default setting.| |**QUOTED_IDENTIFIER**|**boolean**|Optional. Causes [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] to follow the ISO rules regarding quotation marks delimiting identifiers and literal strings. This attribute must be turned on if the index is on a computed column or a view. For example, the following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET QUOTED_IDENTIFIER (Transact-SQL)](../../t-sql/statements/set-quoted-identifier-transact-sql.md).| |**ARITHABORT**|**boolean**|Optional. Causes a query to terminate when an overflow or divide-by-zero error occurs during query execution. This attribute must be turned on if the index is on a computed column or a view. For example, the following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET ARITHABORT (Transact-SQL)](../../t-sql/statements/set-arithabort-transact-sql.md).| |**CONCAT_NULL_YIELDS_**

**NULL**|**boolean**|Optional. Controls whether or not concatenation results are treated as null or empty string values. This attribute must be turned on if the index is on a computed column or a view. For example, the following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET CONCAT_NULL_YIELDS_NULL (Transact-SQL)](../../t-sql/statements/set-concat-null-yields-null-transact-sql.md).| |**ANSI_NULLS**|**boolean**|Optional. Specifies ISO compliant behavior of the Equals (=) and Not Equal to (<>) comparison operators when used with null values. This attribute must be turned on if the index is on a computed column or a view. For example, the following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET ANSI_NULLS (Transact-SQL)](../../t-sql/statements/set-ansi-nulls-transact-sql.md).| |**ANSI_PADDING**|**boolean**|Optional. Controls the way a column stores values shorter than its defined size. This attribute must be turned on if the index is on a computed column or a view. For example, the following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET ANSI_PADDING (Transact-SQL)](../../t-sql/statements/set-ansi-padding-transact-sql.md).| |**ANSI_WARNINGS**|**boolean**|Optional. Specifies ISO standard behavior for several error conditions. This attribute must be turned on if the index is on a computed column or a view. For example, the following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET ANSI_WARNINGS (Transact-SQL)](../../t-sql/statements/set-ansi-warnings-transact-sql.md).| |**NUMERIC_ROUNDABORT**|**boolean**|Optional. Specifies the level of error reporting generated when rounding in an expression causes a loss of precision. This attribute must be off if the index is on a computed column or a view.

The following syntax sets this attribute on:

``

By default this attribute is turned off.

For more information, see [SET NUMERIC_ROUNDABORT (Transact-SQL)](../../t-sql/statements/set-numeric-roundabort-transact-sql.md).| ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |**Data type and length**|None.| |**Default value**|None.| |**Occurrence**|Required once for each **Create** or **Drop** element if no other physical design structure is specified with either the **Statistics** or the **Heap** elements.| ## Element Relationships |Relationship|Elements| |------------------|--------------| |**Parent element**|[Create Element (DTA)](../../tools/dta/create-element-dta.md)

**Drop** Element. For more information, see the Database Engine Tuning Advisor XML schema.| |**Child elements**|[Name Element for Index (DTA)](../../tools/dta/name-element-for-index-dta.md)

[Column Element for Index (DTA)](../../tools/dta/column-element-for-index-dta.md)

**PartitionScheme** Element. For more information, see the Database Engine Tuning Advisor XML schema.

**PartitionColumn** Element. For more information, see the Database Engine Tuning Advisor XML schema.

[Filegroup Element for Index (DTA)](../../tools/dta/filegroup-element-for-index-dta.md)

**NumberOfReferences** Element. For more information, see the Database Engine Tuning Advisor XML schema.

**PercentUsage** Element. For more information, see the Database Engine Tuning Advisor XML schema.| ## Example For a usage example of this element, see the [XML Input File Sample with User-specified Configuration (DTA)](../../tools/dta/xml-input-file-sample-with-user-specified-configuration-dta.md) . ## See Also [XML Input File Reference (Database Engine Tuning Advisor)](../../tools/dta/xml-input-file-reference-database-engine-tuning-advisor.md)