2.2.7.18 RETURNSTATUS

Token Stream Name:

 RETURNSTATUS

Token Stream Function:

Used to send the status value of an RPC (section 2.2.1.6) to the client. The server also uses this token to send the result status value of a T-SQL EXEC query.

Token Stream Comments:

  • The token value is 0x79.

  • This token MUST be returned to the client when an RPC is executed by the server.

Token Stream-Specific Rules:

 TokenType        =   BYTE
 Value            =   LONG

Token Stream Definition:

 RETURNSTATUS     =   TokenType
                      Value

Token Stream Parameter Details

 Parameter

 Description

TokenType

RETURNSTATUS_TOKEN

Value

The return status value determined by the remote procedure. Return status MUST NOT be NULL.