I am trying to setup the Automatic Tuning for the Azure SQL Database, but I have found out the "Query Store is in read-only state"
So I plan to use the command to clear it to make it run "ALTER DATABASE [QueryStoreDB] SET QUERY_STORE CLEAR", but it got the error
Please help me, thank you.
2
Tho the SQL command does not work, I found that there is a button that can help me finish the job -> Purge Query Data button at the right down corner.
To set the query store to read write mode use
ALTER DATABASE [QueryStoreDB] SET QUERY_STORE (OPERATION_MODE = READ_WRITE);
But your error code 615 means that the cache is not in sync with the database, due to connection problems.
https://learn.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-errors-issues?view=azuresql
Check that your SQL Server database is online
Click here to cancel reply.
2
Answers
Tho the SQL command does not work, I found that there is a button that can help me finish the job -> Purge Query Data button at the right down corner.
To set the query store to read write mode use
But your error code 615 means that the cache is not in sync with the database, due to connection problems.
https://learn.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-errors-issues?view=azuresql
Check that your SQL Server database is online