August 1, 2008 at 10:47 am
Hi,
Is there any way to findout the long running quries without using profiler?
Thanks
August 1, 2008 at 8:40 pm
Sure... but the methods are all worse than using profiler... why the profiler phobia?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2008 at 8:15 am
You can get some statistical data from sp_who2, which can point you in the direction, but short, resource intensive queries can up the counters there, so you have to know your queries and data pretty well.
August 2, 2008 at 9:42 am
If you don't like using the profiler GUI, you can use the sp_trace stored procedures. Easiest way is to generate the trace definition from profiler. Create the trace then script out the definition (File -> Export -> Script Trace Definition )
You can then use that in a scheduled job, or just run from Query Analyser.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply