| 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, randolphwest | ||||
| ms.date | 12/08/2022 | ||||
| ms.service | sql | ||||
| ms.subservice | system-objects | ||||
| ms.topic | reference | ||||
| ms.custom |
|
||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| dev_langs |
|
||||
| monikerRange | =azuresqldb-current || >=sql-server-2017 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDESQL Server 2017 Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
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.