--- title: "Workload Element (DTA)" ms.prod: sql ms.prod_service: sql-tools ms.technology: tools-other ms.topic: conceptual dev_langs: - "XML" helpviewer_keywords: - "Workload element" ms.assetid: 68ffd473-6546-4015-98d0-3763165de65c author: markingmyname ms.author: maghan ms.manager: jroth ms.reviewer: "" ms.custom: seo-lt-2019 ms.date: 03/14/2017 --- # Workload Element (DTA) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] Specifies the workload to be used for a tuning session. ## Syntax ``` ...code removed... ... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |**Data type and length**|None.| |**Default value**|None.| |**Occurrence**|Required once for each **DTAInput** element.| ## Element Relationships |Relationship|Elements| |------------------|--------------| |**Parent element**|[Start and Use the Database Engine Tuning Advisor](../../relational-databases/performance/start-and-use-the-database-engine-tuning-advisor.md)| |**Child elements**|[File Element (DTA)](../../tools/dta/file-element-dta.md)

[Database Element for Workload (DTA)](../../tools/dta/database-element-for-workload-dta.md)

[EventString Element (DTA)](../../tools/dta/eventstring-element-dta.md)| ## Remarks A workload is a set of [!INCLUDE[tsql](../../includes/tsql-md.md)] statements that execute against a database or databases that you want to tune. The Database Engine Tuning Advisor can use [!INCLUDE[tsql](../../includes/tsql-md.md)] scripts, trace files, and trace tables as workloads. If you specify a workload in an XML input file and a workload on the command line with the **dta** tool, the workload specified on the command line will be used for tuning. All tuning options specified on the command line override those that are specified in an XML input file. The only exception is if a user-specified configuration is entered in the evaluate mode in the XML input file. For example, if a configuration is entered in the **Configuration** element of the XML input file and the **EvaluateConfiguration** element is also specified as one of the tuning options, the tuning options specified in the XML input file will override any tuning options entered at the command line. One workload must be specified for each tuning session. ## Example The following code example specifies the **MyDatabase.MyDBOwner.TuningTable001** trace table for the **Workload** element. The **TuningTable001** was created by using the Tuning template with SQL Server Profiler and saving the trace output as a table. ``` ...code removed here... MyDatabase MyDBOwner TuningTable001
...code removed here...
``` ## See Also [XML Input File Reference (Database Engine Tuning Advisor)](../../tools/dta/xml-input-file-reference-database-engine-tuning-advisor.md)