2.2.7.22 TABNAME

Token Stream Name:

 TABNAME

Token Stream Function:

Used to send the table name to the client only when in browser mode or from sp_cursoropen.

Token Stream Comments:

  • The token value is 0xA4.

Token Stream-Specific Rules:

 TokenType        =   BYTE
 Length           =   USHORT
  
 NumParts         =   BYTE               ; (introduced in TDS 7.1 Revision 1)
 PartName         =   US_VARCHAR         ; (introduced in TDS 7.1 Revision 1)
  
 TableName        =   US_VARCHAR         ; (removed in TDS 7.1 Revision 1)
                      /
                      (NumParts
                      1*PartName)        ; (introduced in TDS 7.1 Revision 1)
  
 AllTableNames    =   TableName

The TableName element is repeated once for each table name in the query.

Token Stream Definition:

 TABNAME          =   TokenType
                      Length
                      AllTableNames

Token Stream Parameter Details

 Parameter

 Description

TokenType

TABNAME_TOKEN

Length

The actual data length, in bytes, of the TABNAME token stream. The length does not include token type and length field.

TableName

The name of the base table referenced in the query statement.

Show: