The information in this article applies to:
SUMMARY
Special handling is necessary when using the Visual Basic Library for SQL
in order to form an ASCII representation of BINARY or VARBINARY data
retrieved from SQL Server. The SQLData$ function returns character string
representations of most datatypes; however, BINARY, VARBINARY, and IMAGE
data are returned as strings of binary data. That is, the string returned
from SQLData$ represents the actual data stored in SQL Server.
MORE INFORMATION
The code fragment below describes how to incorporate processing within a
SQL results handler in order to form an ASCII representation of BINARY
data. The PadLeft$() function is necessary to ensure that each hexadecimal
number is translated into a two-character ASCII representation.
Additional query words: vb
Keywords : kbinterop SSrvProg SSrvVisB |
Last Reviewed: March 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |