| title | sys.database_automatic_tuning_mode (Transact-SQL) | ||||
|---|---|---|---|---|---|
| description | Learn how to view automatic tuning mode on SQL Server or Azure SQL Database. | ||||
| author | danimir | ||||
| ms.author | danil | ||||
| ms.reviewer | wiassaf | ||||
| ms.date | 07/06/2021 | ||||
| ms.prod | sql | ||||
| ms.prod_service | database-engine, sql-database | ||||
| ms.technology | system-objects | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| dev_langs |
|
||||
| monikerRange | =azuresqldb-current||>=sql-server-2017||>=sql-server-linux-2017||=azuresqldb-mi-current |
[!INCLUDEsqlserver2017-asdb-asdbmi]
Returns the Automatic Tuning mode for this database. Refer to ALTER DATABASE SET AUTOMATIC_TUNING (Transact-SQL) for available options.
| Column name | Data type | Description |
|---|---|---|
| desired_state | smallint | Desired state of the Automatic Tuning mode. |
| desired_state_desc | nvarchar(60) | Textual description of the desired operation mode of Automatic Tuning. |
| actual_state | smallint | Indicates the operation mode of Automatic Tuning mode. |
| actual_state_desc | nvarchar(60) | Textual description of the actual operation mode of Automatic Tuning. |
Requires the VIEW DATABASE STATE permission.