How can you view the Query Store settings for a database?
-
05-10-2020 - |
Pergunta
I see that you can use notion like the following to set the query store configuration:
ALTER DATABASE <database name>
SET QUERY_STORE (SIZE_BASED_CLEANUP_MODE = AUTO);
But how can I check to see what the current value for SIZE_BASED_CLEANUP_MODE
is?
Solução
This can be found (near the end) in the sys.database_query_store_options DMV.
SELECT size_based_cleanup_mode, size_based_cleanup_mode_desc
FROM sys.database_query_store_options
Licenciado em: CC-BY-SA com atribuição
Não afiliado a dba.stackexchange