--- title: "TuningOptions Element (DTA) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: tools-other ms.topic: conceptual dev_langs: - "XML" helpviewer_keywords: - "TuningOptions element" ms.assetid: 58a22ba1-8e03-411f-bd46-85e4540f217a author: stevestein ms.author: sstein manager: craigg --- # TuningOptions Element (DTA) Contains the tuning options for a specific tuning session. ## Syntax ``` ...code removed... ... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |**Data type and length**|None.| |**Default value**|None.| |**Occurrence**|Optional. If used, can only be used once for each `DTAInput` element.| ## Element Relationships |Relationship|Elements| |------------------|--------------| |**Parent element**|[DTAInput Element (DTA)](dtainput-element-dta.md)| |**Child elements**|`ReportSet` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).

`TuningLogTable` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).

`NumberOfEvents` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).

[TuningTimeInMin Element (DTA)](tuningtimeinmin-element-dta.md)

[StorageBoundInMB Element (DTA)](storageboundinmb-element-dta.md)

`MaxKeyColumnsInIndex` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).

`MaxColumnsInIndex` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).

`MinPercentageImprovement` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100)

[TestServer Element (DTA)](server-element-dta.md)

[FeatureSet Element (DTA)](featureset-element-dta.md)

[Partitioning Element (DTA)](partitioning-element-dta.md)

[DropOnlyMode Element (DTA)](droponlymode-element-dta.md)

[KeepExisting Element (DTA)](keepexisting-element-dta.md)

[OnlineIndexOperation Element (DTA)](onlineindexoperation-element-dta.md)

[DatabaseToConnect Element (DTA)](databasetoconnect-element-dta.md)

`IgnoreConstantsInWorkload` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).

`RetainShellDB` element. For more information, see the [Database Engine Tuning Advisor XML schema](https://go.microsoft.com/fwlink/?linkid=43100).| ## Example For examples of the `TuningOptions` element, see the [XML Input File Samples (DTA)](xml-input-file-samples-dta.md). ## See Also [XML Input File Reference (Database Engine Tuning Advisor)](xml-input-file-reference-database-engine-tuning-advisor.md)