Quantcast
Viewing all articles
Browse latest Browse all 15889

Configure profiler to trace stored precedures and tsql taking more than 30 secs

Hi,

An application is logging quite a few timeout errors.  I have looked at the code the web application used and I've noticed that in some function the command.timeout property is not set. The code is from a 3rd party so I cannot modify it.

with this in my mind, I want to use profiler to trace local and remote stored procs and tsql statements that take longer than 30 secs to complete or time out.

I have set the trace with the following events:

Error & Warning (Blocked Processes, Execution Warning )

Stored Procs (RPC:Completed)

TSQL (SQL Batch Completed, SQL SStmt Completed).

I have also set a filter on the duration to >= 30 secs (30000 ms)

I specifically want to identify the queries that are causing the app to log timeout errors, hence taking more 30 secs.

Are there anymore events that I can trace to help acheive this goal?

Many thanks


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>