Starting the Database Engine Tuning Advisor

You have various options to start the Database Engine Tuning Advisor graphical user interface. However, you should never start this tool when running database engine in single-user mode.

From Windows Start Menu

Microsoft Sql Database Engine Tuning Advisor 2012

Navigate to 'Start' and select 'All Programs'. On the 'All Programs' submenu, click 'Microsoft SQL Server' → 'Performance Tools' → 'Database Engine Tuning Advisor'.

From SQL Server Management Studio

While you are in SQL Server Management Studio, click 'Tools' and select ' Database Engine Tuning Advisor'.

From the SQL Server Management Studio Query Editor

Launch SQL Server Management Studio and open any Transact-SQL script file. Highlight a query, right-click this query, and select 'Analyze Query in Database Engine Tuning Advisor'. This will open the GUI of the Database Engine Tuning Advisor.

Using SQL Server Profiler

Start SQL Server Profiler. On the 'Tools' menu, select 'Database Engine Tuning Advisor'.

Creating a Workload

A workload is referred to as a group of T-SQL statements that runs against a specific database or a set of databases you need to tune. The Database Engine Tuning Advisor works by examining these workloads and suggesting the most appropriate indexing or partitioning strategies for your database in order to best optimize the query performance. You may create workloads using any of the below mentioned methods:

Tuning a Database

For tuning a database, you need the Database Engine Tuning Advisor GUI or the dta utility. When using the Database Engine Tuning Advisor GUI, this can be done either through the plan cache or a workload file or table.

Using Plan Cache for Database Tuning:

Follow the given procedure to tune a SQL Server database using plan cache as a workload:

Using Workload File or Table for Tuning a Database:

The following is the procedure to tune a SQL Server database using a workload file or table:

When specifying the table name, use the following format:

database_name.schema_name.table_name

You need to make sure that the table should be present on the server that the Database Engine Tuning Advisor is tuning.

You may also use the dta utility to performance tune your database queries. This utility does the same job performed by Database Engine Tuning Advisor, but uses batch files and scripts. You can use plan cache, trace files, trace tables, or T-SQL scripts as your workload option.

Microsoft Sql Database Engine

-->
APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Warehouse
Database Engine Tuning Advisor provides a graphical user interface (GUI) based way to view tuning sessions and tuning recommendation reports. This lesson shows you how to start the tool and how to configure the display. At the end of this lesson, you will know the different ways you can start the tool and how to configure its display to support the tuning tasks that you regularly perform.

Prerequisites

To complete this tutorial, you need SQL Server Management Studio, access to a server that's running SQL Server, and an AdventureWorks database.
Instructions for restoring databases in SSMS are here: Restore a database.
Note
This tutorial is meant for a user familiar with using SQL Server Management Studio and basic database administration tasks.

Launch Database Tuning Advisor

To begin, open the Database Engine Tuning Advisor (DTA) graphical user interface (GUI). On first use, a member of the sysadmin fixed server role must launch Database Engine Tuning Advisor to initialize the application. After initialization, members of the db_owner fixed database role can use Database Engine Tuning Advisor to tune databases that they own. For more information about initializing Database Engine Tuning Advisor, see Start and Use the Database Engine Tuning Advisor.
  1. Start SQL Server Management Studio (SSMS). On the Windows Start Menu, point to All Programs and locate SQL Server Management Studio.
  2. Once SSMS is open, select the Tools menu and select Database Tuning Advisor.
  1. Database Tuning Advisor launches, and opens the Connect to Server dialog box. Verify the default settings, and then select Connect to connect to your SQL Server.
By default, Database Engine Tuning Advisor opens to the configuration in the following illustration:
Note
The Session Monitor tab displays the session name, which is the name of the connected user and current data.
Two main panes are displayed in the Database Engine Tuning Advisor GUI when it is first opened.
Note
Database Engine Tuning Advisor can take XML files as input when a Transact-SQL script is imported from MicrosoftSQL Server Management Studio Query Editor. For more information, see the section on launching Database Engine Tuning Advisor from the SQL Server Management Studio Query Editor in Start and Use the Database Engine Tuning Advisor.

Configure tool options and layout

  1. On the Tools menu, click Options.
  1. In the Options dialog box, view the following options:

Next Lesson