A check is run at ct_command, determining if TDS_DBRPC2 is enabled or disabled.
If TDS_DBRPC2 is enabled, the maximum length of an RPC name is 65531 bytes.
If TDS_DBRPC2 is disabled, the maximum length is set at 255 bytes.
If RPC name length is less than 256 bytes, TDS_DBRPC is always used. For RPC’s that exceed 255 bytes, the TDS_DBRPC2 token is used, but only if CS_REQ_DBRPC2 capability is on.