Share via

SQL MSDB growing - 'QueryStats'

Lanky Doodle 241 Reputation points
2022-07-06T15:17:56.09+00:00

Hi

I have a very large QueryStats table and not sure the right approach to clear it down.

It's approaching 100GB of "totalSpace'! 'pages' are high as well.

Thanks

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
    2022-07-06T19:47:06.63+00:00

    That does not sound like standard table for msdb, so this must be something you are loading yourself. Or you have some third-party tool that stores data into this table. So the first thing may be to find out how data gets into this table.

    Was this answer helpful?


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.