Although Open Client and Open Server have no explicit limits on the length of an RPC name, the length of the name field (NameLen) in the TDS_DBRPC token is 1 byte. This implicitly limits the length of a Remote Procedure Call (RPC) name to 255 bytes.
To overcome this limitation, Open Client and Open Server now support the TDS token, TDS_DBRPC2.
TDS_DBRPC2 is an enhanced version of TDS_DBRPC and provides support for RPC name lengths that are up to 2 bytes (unsigned) in length.
A new capability bit, CS_REQ_DBRPC2, and its TDS equivalent, TDS_REQ_DBPRC2, are also provided.
The following sections describe changes to Open Client and Open Server in supporting large identifiers for RPC.