Is it possible to query SQL Server 2008 R2 for a list of queries that have timedout?
I’m trying to find out which parts of our app are falling over, but for boring and bad reasons that won’t get fixed, we have no application level logging.
In lieu of getting some application logging put in, how can I find out which queries are timing out?
to get all the time-outs you will need to use the profiler, however you can run some queries that may help:
show top 10 high CPU queries:
this query will show cahced query plans that “SCAN”, change comments for other things, can add filters for UseCount, EstimatedCost, EstimatedCPU, Estimated Rows