Use TDSVARYBIN rather than TDSVARBINARY. DBVARYBIN and TDSVARYBIN objects also include the “LL” length specification that precedes the data.
In Client-Library, the CS-VARBINARY datatype
includes the “LL” length specifications and therefore
can be mapped to TDSVARYBIN.