Article ID: 136653
Article Last Modified on 3/10/2000
When binary SQL data is converted to character C data, each byte (8
bits) of source data is represented as two ASCII characters. These
characters are the ASCII character representation of the number in
its hexadecimal form. For example, a binary 00000001 is converted to
"01" and a binary 11111111 is converted to "FF".
The driver always converts individual bytes to pairs of hexadecimal
digits and terminates the character string with a null byte. Because
of this, if cbValueMax is even and is less than the length of the
converted data, the last byte of the rgbValue buffer is not used.
(The converted data requires an even number of bytes, the
next-to-last byte is a null byte, and the last byte cannot be used.)
Additional query words: 2.10 odbcsdk sql6 6.00
Keywords: kbprb KB136653