Sybase 12.5.1 User Manual page 121

Historical server
Table of Contents

Advertisement

Data item
Current Stmt Batch ID
Version: 11.5 and later
Current Stmt Batch Text
Version: 11.5 and later
Current Stmt Batch Text
Byte Offset
Version: 11.5 and later
Current Stmt Batch Text
Enabled
Version: 11.5 and later
Current Stmt Context ID
Version: 11.5 and later
Current Stmt CPU Time
Version: 11.5 and later
Current Stmt Elapsed
Time
Version: 11.5 and later
Current Stmt Line
Number
Version: 11.5 and later
User's Guide
Description
The ID of a particular query batch being executed on a particular process.
Type: Result
The text of a particular query batch being executed for a particular process. This text
may be only an initial substring of the complete text in a query batch. The amount of
text stored in this field is determined by the Adaptive Server
configuration parameter.
Type: Result
The byte offset to the beginning of a statement within the query batch or stored
procedure being executed for a particular process. If both:
Current Stmt Procedure Database ID is equal to 0 and Current Stmt Procedure ID is
equal to 0 then the statement is the currently executing SQL statement in the query
batch. Otherwise, the statement is the currently executing SQL statement in the stored
procedure uniquely identified by these two IDs.
Type: Result
Reports whether Adaptive Server (version 11.5 and later) is saving the SQL text of the
currently executing query batches and, if so, how much.
Value of 0 = saving SQL text disabled
Value of 1 or more = maximum number of bytes of batch text per server process that
can be saved.
Type: Result
The ID that uniquely identifies a stored procedure invocation within a particular query
batch being executed for a particular process.
Type: Result
The amount of time (in seconds) that the currently executing SQL statement has spent
in the running state.
Type: Result
The amount of time (in seconds) that the currently executing SQL statement has been
running.
Type: Result
The number of the line (within a query batch or stored procedure) that contains the
beginning of the currently executing SQL statement for a particular process. The
currently executing SQL statement is in the query batch if both Current Stmt Procedure
Database ID is equal to 0 and Current Stmt Procedure ID is equal to 0.
Otherwise, the currently executing SQL statement is in the stored procedure uniquely
identified by these two IDs.
Type: Result
APPENDIX A
Data Items
max SQL text monitored
107

Advertisement

Table of Contents
loading

Table of Contents