I have a database in SQL Server 2008, and there are a lot of machines making queries against it. I know there is a SQL Server profiler, but I don’t know very well how to use it.
Is there any way to know what are the most common queries executed in the database? Through the profiler or not, it doesn’t matter.
Thank you very much in advance!
This will tell you the number of times a query has been executed and the longest query to execute.
Not sure whether this will be handy or not, but this SQL will give you the slowest 100 queries: