SMC_NAME_CUR_STMT_NUM

Description

Reports the number of the statement (appearing in a query batch or stored procedure) that is the currently executing SQL statement for a particular process. The currently executing SQL statement is in the query batch if both CUR_STMT_ACT_STP_DB_ID is equal to 0 and CUR_STMT_ACT_STP_ID is equal to 0. Otherwise, the currently executing SQL statement is in the stored procedure uniquely identified by these two IDs.

A value of zero indicates partial data for the currently executing SQL statement (that is, this SQL statement began executing before monitoring began. Performance metrics are available but numbers reflect only the time period since the start of monitoring).

Version compatibility

11.5 and later

Data item type

Result

Server level

No

Required keys

None

Optional keys

None

Statistic types and datatypes

VALUE_ SAMPLE

VALUE_ SESSION

RATE_ SAMPLE

RATE_ SESSION

AVG_ SAMPLE

AVG_ SESSION

LONG