Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Trace


Trace

Author
Message
sandhyarao49
sandhyarao49
SSC-Enthusiastic
SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)SSC-Enthusiastic (123 reputation)

Group: General Forum Members
Points: 123 Visits: 650
Hi

I'mtrying to find out the exact difference between batch-level trace and a statement-level trace in sql server.

Can any one helpmeout inthis regard.
GRE (Gethyn Ellis)
GRE (Gethyn Ellis)
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1066 Visits: 2840
sandhyarao49 (2/2/2010)


Hi

I'mtrying to find out the exact difference between batch-level trace and a statement-level trace in sql server.

Can any one helpmeout inthis regard.




I'm not sure if I'm explaining this clearly

But Batch events relate to the whole batch being executed..for example the BatchCompleted event reports information on the batch start time, end time, duration, reads, writes etc. If the batch is astored proc call all you will get is one entry when the batch completes. The only data in the text data column will be the call to the stored proc. If that stored proc is slow and you tuning it and you want to see which statements inside the proc are performing poorly then you need to dig a bit deep into the proc and look at the exact TSQL statements that make up the proc so...

Stmtcompleted, if you have that event in the same trace, if said Stored Proc is made up several TSQL statements each statement will recorded in the trace separately giving a breakdown of each one.

HTH

Gethyn Ellis

gethynellis.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search