in SQL server, i would like to keep track of all queries and their count , based on specific time frame and keep thsir historiacl record.
like every hour , which query ran for how many times. We have a database server which gets too many issues and we are able to see that number of querie is at certain timeframe increased but we cannot identify which are Extra queries running or which queries ran more often or their count is more than normal, which cause the issue. Is there any way to keep track of query count per hour, per 30 min, per 6 hour or per day ? as i tried monitoring tools like datadog, redgate, and other tools, they dont have this functionality