2.2.7.9 DONEPROC
Token Stream Name
-
DONEPROC
Token Stream Function
Indicates the completion status of a stored procedure. This is also generated for stored procedures executed through SQL statements.
Token Stream Comments
The token value is 0xFE.
A DONEPROC token is sent when all the SQL statements within a stored procedure have been executed.
A DONEPROC token can be followed by another DONEPROC token or a DONEINPROC only if the DONE_MORE bit is set in the Status value.
There is a separate DONEPROC token sent for each stored procedure that is called.
Token Stream-Specific Rules
-
TokenType = BYTE Status = USHORT CurCmd = USHORT DoneRowCount = LONG
Token Stream Definition
-
DONEPROC = TokenType Status CurCmd DoneRowCount
Token Stream Parameter Details
Token stream parameter details are described in the following table.
Parameter |
Description |
---|---|
TokenType |
DONEPROC_TOKEN |
Status |
The Status field MUST be a bitwise 'OR' of the following:
|
CurCmd |
The token of the SQL statement for executing stored procedures. |
DoneRowCount |
The count of rows that were affected by the command. The value of DoneRowCount is valid if the value of Status includes DONE_COUNT. |