Skip to content

Commit

Permalink
Update sp_QuickieStore.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdarlingdata committed Apr 23, 2024
1 parent 9d17e95 commit 39067e3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions sp_QuickieStore/sp_QuickieStore.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1898,9 +1898,17 @@ SELECT
query_capture_mode_desc,
size_based_cleanup_mode_desc
FROM ' + @database_name_quoted + N'.sys.database_query_store_options AS dqso
WHERE dqso.desired_state = 1
OR dqso.actual_state IN (1, 3)
OR dqso.desired_state <> dqso.actual_state
WHERE
(
dqso.desired_state <> 4
OR dqso.readonly_reason <> 8
)
AND
(
dqso.desired_state = 1
OR dqso.actual_state IN (1, 3)
OR dqso.desired_state <> dqso.actual_state
)
OPTION(RECOMPILE);' + @nc10;

IF @debug = 1
Expand Down

0 comments on commit 39067e3

Please sign in to comment.