Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Profiler Trace - Setting Duration Filter

Author  Topic 

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2014-02-05 : 16:14:44
I'm building a profiler trace (2008 R2) to hopefully trap some blocking by tracing the Blocked Process Report event.

If I filter on Duration > 5,000,000 is that 5 seconds?
I want to trap sql statements running longer than 5 secs.

Thanks,Jack

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-02-05 : 16:36:21
From Profiler, duration is in milliseconds. From a server-side trace or when reading the raw Profiler data (not in the GUI), duration is in microseconds. For 5 seconds, you would specify 5000 for duration in Profiler.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2014-02-05 : 16:57:57
Thanks, Tara. Well, that would explain why I'm not trapping anything! Will change it to 5000
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-02-05 : 18:24:26


Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -