Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Profiler shows long duration for sp but actually it is not Expand / Collapse
Posted Friday, June 7, 2013 5:43 AM


Group: General Forum Members
Last Login: Monday, November 28, 2016 8:56 AM
Points: 414, Visits: 1,062
I have a sp which is timing out on my website. When i run a trace on it, duration comes ~ 80000 (ms)
So it times out as it is set 30s for site. but when I run the same call after copying from trace in SSMS, it hardly takes 2-3 secs. Why profiler show long durations?
I tries same thing for 5-10 calls to be sure that it is not because of cached data. but they are always fast on SSMS.
Is duration column in profiler accounts for Network time or any other times in it?

-----Table Proc Index Performance TSQL &&%$#@*(#@$%.......------------
Deep Into SQL Jungle
Post #1461042
Posted Friday, June 7, 2013 7:10 AM



Group: General Forum Members
Last Login: Tuesday, October 25, 2016 2:13 AM
Points: 193, Visits: 974
The version that you are running may well have a different query plan. You may have an issue with parameter sniffing.

Every day is a school day, and don't trust anyone who tells you any different.
Post #1461066
Posted Saturday, June 8, 2013 3:17 PM



Group: General Forum Members
Last Login: Friday, December 2, 2016 3:25 AM
Points: 7,933, Visits: 14,355
You could also be experiencing blocking. Run one proc now and a statement within it might be blocked for some reason and the proc could take 30 seconds. Run that same proc 60 seconds later and it might complete with no issues in 2-3 seconds.

There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1461304
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse