You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 48bc052
Browse filesBrowse the repository at this point in the historyBrowse files
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**.
20
19
21
20
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
105
104
106
105
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).
107
106
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.
109
115
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
111
125
112
-
## Permissions
126
+
###Permissions
113
127
114
128
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.
0 commit comments