Re: Profiler: Duration vs Difference between StartTime and EndTime
- From: "Adam Machanic" <amachanic@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Nov 2007 18:09:38 -0500
EndTime - StartTime is generally much more accurate than reported duration. I am not certain how duration is calculated, but I regularly see numbers that are wildly inaccurate. I still use it, though, simply because it's quicker to look at and can be filtered :-)
--
Adam Machanic
SQL Server MVP - http://sqlblog.com
Author, "Expert SQL Server 2005 Development"
http://www.apress.com/book/bookDisplay.html?bID=10220
"Mark" <marksullivan@xxxxxxx> wrote in message news:OPMWsT9HIHA.4880@xxxxxxxxxxxxxxxxxxxxxxx
I was running a profile trace for a client SQL Server 2005 Standard Edition, SP2. The duration for some of the statements was just under 1 minute, however for the same statements the difference between the starttime and endtime were closer to 17 ms.
Which one of these are more accurate? I saw in another posting that duration was actual time.
If duration is actual time how is it calculated?
Mark
.
- References:
- Prev by Date: Profiler: Duration vs Difference between StartTime and EndTime
- Next by Date: Management Studio cannot edit queries
- Previous by thread: Profiler: Duration vs Difference between StartTime and EndTime
- Next by thread: Management Studio cannot edit queries
- Index(es):
Relevant Pages
|