question

santoshvicky avatar image
santoshvicky asked

How to find out Stored procedures, function and triggers which are timing out?

I want to find in my production which are the Stored procedures, functions or triggers are getting timed out?
stored-proceduresfunctionstimeout-expired
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image Grant Fritchey ♦♦ commented ·
Please indicate helpful answers by clicking on the thumbs up next to those answers. If any one answer lead to a solution, show that by clicking on the thumbs up next to that answer.
1 Like 1 ·
ankushparab avatar image
ankushparab answered
In brief... Using profiler trace or extended events. Basically put filter on duration based on your timeout value.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Grant Fritchey avatar image
Grant Fritchey answered
I would suggest using extended events if you are on SQL Server 2008 or greater. The reason is, filtering in extended events is better than using a trace. A trace will capture the full event, including all the columns you specify, then filter based on your criteria. Extended events will filter events captured based on your criteria before they collect all data. It's one of the many things that makes extended events better. [Here's a link][1] to get you started with extended events. [1]: http://msdn.microsoft.com/en-us/library/dd822788(v=SQL.100).aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.