Skip to content

Exclude Model Database From @QueryStoreInUse Check #3654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

bwiggin10
Copy link
Contributor

The model database always returns 1 for is_query_store_on in sys.databases in SQL 2022, so this will always show query store is in use even if no user databases have it enabled.

The model database always returns 1 for is_query_store_on in sys.databases in SQL 2022, so this will always show query store is in use even if no user databases have it enabled.
Copy link
Member

@BrentOzar BrentOzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request! Makes sense, looks good, merging into the dev branch. It'll be in the next release with credit to you in the release notes.

@BrentOzar BrentOzar added this to the 2025-08 Release milestone Jul 3, 2025
@BrentOzar BrentOzar merged commit 782be11 into BrentOzarULTD:dev Jul 3, 2025
0 of 4 checks passed
@BrentOzar
Copy link
Member

Thanks for the pull request! Makes sense, looks good, merging into the dev branch. It'll be in the next release with credit to you in the release notes.

@bwiggin10 bwiggin10 deleted the patch-1 branch July 7, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants