|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Profiler event class questionWhen capturing tuning data in SQL Profiler, what are the key differences
between event classes 10 (RPC Completed), 12 (TSQL Batch Completed), and 45 (SQL Stmt Completed)? A batch is a group of one or more Transact-SQL statements that is executed
as a unit. The TSQL Batch Completed event indicates is generated when a batch completes. The reported metrics for the event are the accumulation of all statements within the batch. The SQL stmt completed event occurs when a SQL statement within a Transact-SQL batch completes. An RPC (Remote Procedure Call) is a stored procedure that is executed using a client API that allows remote procedure call execution. The RPC completed is generated when the procedure execution completes. The reported metrics for the event are the accumulation of all statements within the procedure. The SP stmt completed event occurs when a SQL statement within a stored procedure completes. -- Show quoteHappy Holidays Dan Guzman SQL Server MVP "SSM" <S**@discussions.microsoft.com> wrote in message news:00995159-156F-4E1B-896D-DFD9BBBBDD13@microsoft.com... > When capturing tuning data in SQL Profiler, what are the key differences > between event classes 10 (RPC Completed), 12 (TSQL Batch Completed), and > 45 > (SQL Stmt Completed)? Dan Guzman wrote:
Show quote > A batch is a group of one or more Transact-SQL statements that is Dan,> executed as a unit. The TSQL Batch Completed event indicates is > generated when a batch completes. The reported metrics for the event > are the accumulation of all statements within the batch. > > The SQL stmt completed event occurs when a SQL statement within a > Transact-SQL batch completes. > > An RPC (Remote Procedure Call) is a stored procedure that is executed > using a client API that allows remote procedure call execution. The > RPC completed is generated when the procedure execution completes. The > reported metrics for the event are the accumulation of all > statements within the procedure. > The SP stmt completed event occurs when a SQL statement within a > stored procedure completes. I would add that if not using an RPC, the SQL:StmtCompleted event is raised after a stored procedure completes and it contains the performance metrics for the stored procedure execution. |
|||||||||||||||||||||||