2.2.7.7 DONEINPROC
Token Stream Name:
-
DONEINPROC
Token Stream Function:
Indicates the completion status of a SQL statement within a stored procedure.
Token Stream Comments
The token value is 0xFF.
A DONEINPROC token is sent for each executed SQL statement within a stored procedure.
A DONEINPROC token MUST be followed by another DONEPROC token or a DONEINPROC token.
Token Stream-Specific Rules:
-
TokenType = BYTE Status = USHORT CurCmd = USHORT DoneRowCount = LONG / ULONGLONG; (Changed to ULONGLONG in TDS 7.2)
The type of the DoneRowCount element depends on the version of TDS.
Token Stream Definition:
-
DONEINPROC = TokenType Status CurCmd DoneRowCount
Token Stream Parameter Details:
Parameter |
Description |
---|---|
TokenType |
DONEINPROC_TOKEN |
Status |
The Status field MUST be a bitwise 'OR' of the following:
|
CurCmd |
The token of the current SQL statement. The token value is provided and controlled by the application layer, which utilizes TDS. The TDS layer does not evaluate the value. |
DoneRowCount |
The count of rows that were affected by the SQL statement. The value of DoneRowCount is valid if the value of Status includes DONE_COUNT. |