Skip to content

Commit 48bc052

Browse files
authored
Troubleshooting steps
Troubleshooting steps
1 parent 0fad61f commit 48bc052

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

‎azure-sql/database/automatic-tuning-enable.md‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ ms.topic: how-to
1010
author: danimir
1111
ms.author: danil
1212
ms.reviewer: wiassaf, sstein
13-
ms.date: 12/03/2019
13+
ms.date: 03/03/2021
1414
---
1515
# Enable automatic tuning in the Azure portal to monitor queries and improve workload performance
1616
[!INCLUDE[appliesto-sqldb-sqlmi](../includes/appliesto-sqldb-sqlmi.md)]
1717

18-
1918
Azure SQL Database automatically manages data services that constantly monitor your queries and identifies the action that you can perform to improve performance of your workload. You can review recommendations and manually apply them, or let Azure SQL Database automatically apply corrective actions - this is known as **automatic tuning mode**.
2019

2120
Automatic tuning can be enabled at the server or the database level through:
@@ -105,11 +104,26 @@ Setting the individual tuning option to ON will override any setting that databa
105104
106105
To find out more abut T-SQL options to configure automatic tuning, see [ALTER DATABASE SET Options (Transact-SQL)](/sql/t-sql/statements/alter-database-transact-sql-set-options?view=azuresqldb-current&preserve-view=true).
107106

108-
## Disabled by the system
107+
## Troubleshooting
108+
109+
### Automated recommendation managemnet is disabled, or disabled by the system
110+
111+
In case of error messages that automated recommendation management has been disabled, or simply disabled by system, the most common casues are:
112+
- Query Store is not enabled, or
113+
- Query Store is in read-only mode for a specified database, or
114+
- Query Store stopped running because it used the alocated storage space.
109115

110-
Automatic tuning is monitoring all the actions it takes on the database and in some cases it can determine that automatic tuning can't properly work on the database. In this situation, the tuning option will be disabled by the system. In most cases this happens because Query Store is not enabled or it's in read-only state on a specific database.
116+
The following steps can be considered to rectify this issue:
117+
- Clean up the Query Store, or modify the data retention period to "auto" by using T-SQL. See how to [configure recommended retention and capture policy for Query Store](/azure/azure-sql/database/query-performance-insight-use#recommended-retention-and-capture-policy).
118+
- Use SQL Server Management Studio (SSMS) and follow these steps:
119+
1. Connect to the Azure SQL Database
120+
2. Right click on the database
121+
3. Go to Properties and click on Query Store
122+
4. Change the Operation Mode to Read-Write
123+
5. Change the Store Capture Mode to Auto
124+
6. Change the Size Based Cleanup Mode to Auto
111125

112-
## Permissions
126+
### Permissions
113127

114128
As automatic tuning is an Azure feature, to use it you will need to use Azure's built-in roles. Using SQL Authentication only will not be sufficient to use the feature from the Azure portal.
115129

0 commit comments

Comments
 (0)