Enabling Query Store

Mikhail Firsov 1,881 Reputation points
2022-06-24T10:45:45.173+00:00

Hello!

I've enabled Query Store in the Read-Write mode on my SQL Server - as a result the corresponding Query Store containers have appeared in the Management Studio, but no single query was ever added to the store even after setting the both monitoring options to 1 minutes:
214769-01.png

What should I check to make it working?

Thank you in advance,
Michael

SQL Server | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Erland Sommarskog 128.7K Reputation points MVP Volunteer Moderator
    2022-06-27T20:27:07.943+00:00

    What you may what to change if you are only playing around is to change the capture mode to ALL. This can have detrimental effcet on a system witn lot of unparameterised queries. Then again, this was the default setting in SQL 2016 and 2017.

    The other two may not have as much effect as you think, because when you query store views, they take data both from what is on disk and what is buffered in memory. The effect of the flush parameter is how much you lose in case of a crash or a failover.

    ï also like to point that when we recommend you to stick to the defaults, we have a production scenario in mind.

    I'm afraid that I did not watch the video.

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Mikhail Firsov 1,881 Reputation points
    2022-06-28T12:49:13.387+00:00

    "to change if you are only playing around is to change the capture mode to ALL" - oh, that's it! I didn't even bother to check that this parameter is set to None although according to documentation it must be "Auto" by default (and all articles on enabling Query Story were saying nothing about capture mode) !

    Now it works!

    Thank you all for your help!

    Regards,
    Michael

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.