SQL Server 2005 Profiler Duration
January 10th, 2008 by Andrew Chen
Today I need to find out whether one of the SQL servers had performance problem because a monitoring tool developed in house was notifying us a store procedure call on a database server was timing out. In order to find out what was wrong with that store procedure I set up a trace using SQL server profiler
In order to monitor the server for a period of time I later configured profiler to store the trace results into a database table. So I did that. However when I later on query the data I found every store proc call recorded took over 10 seconds to execute. I thought I must configure it wrong.
It turns out that the duration shown in SQL server profiler is milliseconds but if you configure profiler to save the result then the duration saved is micro-milliseconds. So if a statement took 50 milliseconds to execute it will show 50 in the duration column of profiler but it will show 50000 in the duration column saved in database table. That is a stupid feature. It confuse user a lot. SQL server 2000 profiler doesn’t have that problem though


No comments yet.