--- title: "TuningTimeInMin Element (DTA)" ms.prod: sql ms.prod_service: sql-tools ms.technology: tools-other ms.topic: conceptual dev_langs: - "XML" helpviewer_keywords: - "TuningTimeInMin element" ms.assetid: 4973d9ac-20fd-4ac3-bc9f-5d60e39fdb7d author: markingmyname ms.author: maghan ms.manager: jroth ms.reviewer: "" ms.custom: seo-lt-2019 ms.date: 03/01/2017 --- # TuningTimeInMin Element (DTA) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] Specifies the maximum length of a tuning session in minutes. ## Syntax ``` ...code removed... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |**Data type and length**|**unsignedInt**, unlimited length.| |**Default value**|480 minutes (8 hours).| |**Occurrence**|Required unless a value has been specified for the **NumberOfEvents** element.| ## Element Relationships |Relationship|Elements| |------------------|--------------| |**Parent element**|[TuningOptions Element (DTA)](../../tools/dta/tuningoptions-element-dta.md)| |**Child elements**|None| ## Example ## Description The following code example shows how to set 12 hours as the maximum tuning time: ## Code ``` ... ... 720 ...code removed here... ``` ## See Also [XML Input File Reference (Database Engine Tuning Advisor)](../../tools/dta/xml-input-file-reference-database-engine-tuning-advisor.md)