--- title: "TuningOptions Element (DTA)" ms.prod: sql ms.prod_service: sql-tools ms.technology: tools-other ms.topic: conceptual dev_langs: - "XML" helpviewer_keywords: - "TuningOptions element" ms.assetid: 58a22ba1-8e03-411f-bd46-85e4540f217a author: markingmyname ms.author: maghan ms.manager: jroth ms.reviewer: "" ms.custom: seo-lt-2019 ms.date: 03/01/2017 --- # TuningOptions Element (DTA) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] 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)](../../tools/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)](../../tools/dta/tuningtimeinmin-element-dta.md)

[StorageBoundInMB Element (DTA)](../../tools/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)](../../tools/dta/testserver-element-dta.md)

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

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

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

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

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

[DatabaseToConnect Element (DTA)](../../tools/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)](../../tools/dta/xml-input-file-samples-dta.md). ## See Also [XML Input File Reference (Database Engine Tuning Advisor)](../../tools/dta/xml-input-file-reference-database-engine-tuning-advisor.md)