An identifier that distinguishes one invocation of a routine from others at the same nesting level within a unit of work. It is unique within a unit of work for a specific nesting level.
The invocation_id monitor element is an alias of the stmt_invocation_id monitor element.
Table Function | Monitor Element Collection Level |
---|---|
MON_GET_ACTIVITY_DETAILS table function - Get complete activity details (reported in DETAILS XML document) | Always collected |
Event Type | Logical Data Grouping | Monitor Switch |
---|---|---|
Activities | event_activitystmt | - |
Locking | - | - |
Deadlocks with Details History Values1 | event_stmt_history | - |
Deadlocks with Details History1 | event_stmt_history | - |
Unit of work | Reported in the package list. | - |
You can use this element to uniquely identify the invocation in which a particular SQL statement has been executed. You can also use this element in conjunction with other statement history entries to see the sequence of SQL statements that caused the deadlock.