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 2005 Forums
 SQL Server Administration (2005)
 Long Running Queries

Author  Topic 

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-05-09 : 01:29:50
Hello,

I want to find long running queries?

Can any one help me?

Thanks
Prashant Hirani

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-09 : 01:35:20
With Profiler.
Go to Top of Page

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-05-09 : 01:44:45
Thanks for reply.

As i don't know how to use profiler so, can you explain me?

regards
Prashant Hirani
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-09 : 20:59:33
Use SQLProfilerTSQL_Duration template in SQL profiler
and capture these in event tabs
RPC:Completed
SQL:BatchCompleted
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2008-05-10 : 05:41:37
There are also filters , for example , you may define a Long Running query as 10 sec, therefore only capture queries with 10 seconds or greater

Jack Vamvas
--------------------
Search IT jobs from multiple sources- http://www.ITjobfeed.com
Go to Top of Page
   

- Advertisement -