--- title: "Database Element for Workload (DTA)" ms.prod: sql ms.prod_service: sql-tools ms.technology: tools-other ms.topic: conceptual dev_langs: - "XML" helpviewer_keywords: - "Database element" ms.assetid: 112fca2a-37e5-4162-b2e7-b56eb8ab0c6f author: markingmyname ms.author: maghan ms.manager: jroth ms.reviewer: "" ms.custom: seo-lt-2019 ms.date: 03/01/2017 --- # Database Element for Workload (DTA) [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)] Specifies the database where the workload trace table is located. ## Syntax ``` ...code removed here... ``` ## Element Characteristics |Characteristic|Description| |--------------------|-----------------| |**Data type and length**|None.| |**Default value**|None.| |**Occurrence**|Required once if no other type of workload is specified. You must specify an **EventString**, a **File**, or a **Database** child element for the **Workload** parent, but only one type can be used. For example, if you specify a workload with the **Database** element, you cannot also specify a workload with the **File** element in the same XML input file.| ## Element Relationships |Relationship|Elements| |------------------|--------------| |**Parent element**|[Workload Element (DTA)](../../tools/dta/workload-element-dta.md)| |**Child elements**|[Name Element for Database (DTA)](../../tools/dta/name-element-for-database-dta.md)

[Schema Element for Database (DTA)](../../tools/dta/schema-element-for-database-dta.md)| ## Remarks This element is of the **DatabaseDetailsTypecomplexType** name in the Database Engine Tuning Advisor XML schema. Do not confuse this **Database** element with the one whose root parent is the **Configuration** element. (See [Database Element for Configuration (DTA)](../../tools/dta/database-element-for-configuration-dta.md).) ## Example For a usage example of this **Database** element, see the code example in [Workload Element (DTA)](../../tools/dta/workload-element-dta.md). ## See Also [XML Input File Reference (Database Engine Tuning Advisor)](../../tools/dta/xml-input-file-reference-database-engine-tuning-advisor.md)