Re: run Profiler on a specific SP/Query/Function
- From: "Greg Linwood" <g_linwood@xxxxxxxxxxx>
- Date: Mon, 17 Apr 2006 18:31:08 +1000
Hi Erland
I'm always keen to learn new Profiler tehniques - how do the Starting events
help you get a better grip over the flow?
Do Starting events let you know if a batch is aborted due to an error any
more than Completed events? I would've thought that collecting an error
event would've been the way to detect those conditions..
Regards,
Greg Linwood
SQL Server MVP
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns97A8672301477Yazorman@xxxxxxxxxxxx
Michael Hotek (mike@xxxxxxxxxxxxxxxxxxxxxxxx) writes:
Also, I find the RPC: Starting and the TSQL:BatchStarting events to be
virtually worthless and never use them. I always use the RPC: Completed
and TSQL: BatchCompleted events, because you get duration, reads,
writes, and CPU which are critical stats when trying to analyze
anything.
Depends. The Starting events can be useful if you want to see how things
interact, so you get a better grip over the flow. Also, I have a feeling
that you don't always get a Completed event if the batch is aborted due to
an error. (But I have not examined this in detail.)
But I far more often exclude them than include them in traces, that's
true.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: run Profiler on a specific SP/Query/Function
- From: Erland Sommarskog
- Re: run Profiler on a specific SP/Query/Function
- From: Erland Sommarskog
- Re: run Profiler on a specific SP/Query/Function
- References:
- Re: run Profiler on a specific SP/Query/Function
- From: Greg Linwood
- Re: run Profiler on a specific SP/Query/Function
- From: Michael Hotek
- Re: run Profiler on a specific SP/Query/Function
- From: Erland Sommarskog
- Re: run Profiler on a specific SP/Query/Function
- Prev by Date: Re: Exception trying to import data from Excel .
- Next by Date: Re: run Profiler on a specific SP/Query/Function
- Previous by thread: Re: run Profiler on a specific SP/Query/Function
- Next by thread: Re: run Profiler on a specific SP/Query/Function
- Index(es):
Relevant Pages
|