Skip to content

Commit f72e7cb

Browse files
authored
Merge pull request #19319 from WilliamDAssafMSFT/20210511-dta-notes-azure
20210511 add notes making more clear that DTA doesn't apply to Azure
2 parents b59641f + ee741bd commit f72e7cb

4 files changed

Lines changed: 108 additions & 99 deletions

File tree

docs/relational-databases/performance/database-engine-tuning-advisor.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
---
2-
title: "Database Engine Tuning Advisor | Microsoft Docs"
2+
title: "Database Engine Tuning Advisor"
33
description: Learn how to use Database Engine Tuning Advisor to troubleshoot, tune a large set of queries, analyze design changes, and manage storage space in SQL Server.
44
ms.custom: ""
5-
ms.date: "01/09/2017"
5+
ms.date: "05/11/2021"
66
ms.prod: sql
77
ms.reviewer: ""
88
ms.technology: performance
99
ms.topic: conceptual
1010
f1_keywords:
1111
- "sql13.dta.general.f1"
12-
ms.assetid: 50dd0a0b-a407-4aeb-bc8b-b02a793aa30a
1312
author: WilliamDAssafMSFT
1413
ms.author: wiassaf
1514
---
1615
# Database Engine Tuning Advisor
1716
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18-
The [!INCLUDE[msCoName](../../includes/msconame-md.md)] Database Engine Tuning Advisor (DTA) analyzes databases and makes recommendations that you can use to optimize query performance. You can use the Database Engine Tuning Advisor to select and create an optimal set of indexes, indexed views, or table partitions without having an expert understanding of the database structure or the internals of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Using the DTA, you can perform the following tasks.
17+
The [!INCLUDE[msCoName](../../includes/msconame-md.md)] Database Engine Tuning Advisor (DTA) analyzes databases and makes recommendations that you can use to optimize query performance. You can use the Database Engine Tuning Advisor to select and create an optimal set of indexes, indexed views, or table partitions without having an expert understanding of the database structure or the internals of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Using the DTA, you can perform the following tasks:
1918

2019
- Troubleshoot the performance of a specific problem query
2120

@@ -25,7 +24,11 @@ ms.author: wiassaf
2524

2625
- Manage storage space
2726

28-
## Database Engine Tuning Advisor Benefits
27+
28+
> [!NOTE]
29+
> The Database Engine Tuning Advisor is not supported for [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] or [!INCLUDE[ssazuremi_md](../../includes/ssazuremi_md.md)]. Instead, consider the strategies recommended in [Monitoring and performance tuning in Azure SQL Database and Azure SQL Managed Instance](/azure/azure-sql/database/monitor-tune-overview). For [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)], see also the [Database Advisor performance recommendations for Azure SQL Database](/azure/azure-sql/database/database-advisor-implement-performance-recommendations).
30+
31+
## Database Engine Tuning Advisor benefits
2932
Optimizing query performance can be difficult without a full understanding the database structure and the queries that are run against the database. The **Database Engine Tuning Advisor (DTA)** can make this task easier by analyzing the current query plan cache or by analyzing a workload of [!INCLUDE[tsql](../../includes/tsql-md.md)] queries that you create and recommending an appropriate physical design. For more advanced database administrators, DTA exposes a powerful mechanism to perform exploratory what-if analysis of different physical design alternatives. The DTA can provide the following information.
3033

3134
- Recommend the best mix of rowstore and [columnstore](../../relational-databases/performance/columnstore-index-recommendations-in-database-engine-tuning-advisor-dta.md) indexes for databases by using the query optimizer to analyze queries in a workload.
@@ -95,7 +98,7 @@ The Database Engine Tuning Advisor is designed to handle the following types of
9598

9699
3. The user who runs Database Engine Tuning Advisor is not a member of the **db_owner** database role or the **sysadmin** fixed server role. The queries in the workload are analyzed in the security context of the user who runs the Database Engine Tuning Advisor. The user must be a member of the **db_owner** database role.
97100

98-
- Database Engine Tuning Advisor stores tuning session data and other information in the **msdb** database. If changes are made to the **msdb** database you may risk losing tuning session data. To eliminate this risk, implement an appropriate backup strategy for the **msdb** database.
101+
- Database Engine Tuning Advisor stores tuning session data and other information in the `msdb` database. If changes are made to the `msdb` database, you may risk losing tuning session data. To eliminate this risk, implement an appropriate backup strategy for the `msdb` database.
99102

100103
## Performance Considerations
101104
Database Engine Tuning Advisor can consume significant processor and memory resources during analysis. To avoid slowing down your production server, follow one of these strategies:
@@ -106,15 +109,15 @@ The Database Engine Tuning Advisor is designed to handle the following types of
106109

107110
- Specify only the physical database design structures you want Database Engine Tuning Advisor to analyze. Database Engine Tuning Advisor provides many options, but specifies only those that are necessary.
108111

109-
## Dependency on xp_msver Extended Stored Procedure
112+
## Dependency on xp_msver extended stored procedure
110113
Database Engine Tuning Advisor depends on the **xp_msver** extended stored procedure to provide full functionality. This extended stored procedure is turned on by default. Database Engine Tuning Advisor uses this extended stored procedure to fetch the number of processors and available memory on the computer where the database that you are tuning resides. If **xp_msver** is unavailable, Database Engine Tuning Advisor assumes the hardware characteristics of the computer where Database Engine Tuning Advisor is running. If the hardware characteristics of the computer where Database Engine Tuning Advisor is running are not available, one processor and 1024 megabytes (MBs) of memory are assumed.
111114

112115
This dependency affects partitioning recommendations because the number of partitions recommended depends on these two values (number of processors and available memory). The dependency also affects your tuning results when you use a test server to tune your production server. In this scenario, Database Engine Tuning Advisor uses **xp_msver** to fetch hardware properties from the production server. After tuning the workload on the test server, Database Engine Tuning Advisor uses these hardware properties to generate a recommendation. For more information, see [xp_msver (Transact-SQL)](../../relational-databases/system-stored-procedures/xp-msver-transact-sql.md).
113116

114-
## Database Engine Tuning Advisor Tasks
115-
The following table lists common Database Engine Tuning Advisor tasks and the topics that describe how to perform them.
117+
## Database Engine Tuning Advisor tasks
118+
The following table lists common Database Engine Tuning Advisor tasks and the articles that describe how to perform them.
116119

117-
|Database Engine Tuning Advisor Task|Topic|
120+
|Database Engine Tuning Advisor task|article|
118121
|-----------------------------------------|-----------|
119122
|Initialize and start the Database Engine Tuning Advisor.<br /><br /> Create a workload by specifying the plan cache, by creating a script, or by generating a trace file or trace table.<br /><br /> Tune a database by using the Database Engine Tuning Advisor graphical user interface tool.<br /><br /> Create XML input files to tune workloads.<br /><br /> View descriptions of the Database Engine Tuning Advisor user interface options.|[Start and Use the Database Engine Tuning Advisor](../../relational-databases/performance/start-and-use-the-database-engine-tuning-advisor.md)|
120123
|View the results of the database tuning operation.<br /><br /> Select and implement tuning recommendations.<br /><br /> Perform what-if exploratory analysis against the workload.<br /><br /> Review existing tuning sessions, clone sessions based on existing ones <br />or edit existing tuning recommendations for further evaluation or implementation.<br /><br /> View descriptions of the Database Engine Tuning Advisor user interface options.|[View and Work with the Output from the Database Engine Tuning Advisor](../../relational-databases/performance/view-and-work-with-the-output-from-the-database-engine-tuning-advisor.md)|

0 commit comments

Comments
 (0)