|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Profiler: Duration vs Difference between StartTime and EndTimeI 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 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 :-) -- Show quoteAdam Machanic SQL Server MVP - http://sqlblog.com Author, "Expert SQL Server 2005 Development" http://www.apress.com/book/bookDisplay.html?bID=10220 "Mark" <marksulli***@rcn.com> wrote in message news:OPMWsT9HIHA.4880@TK2MSFTNGP03.phx.gbl... >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 > |
|||||||||||||||||||||||