ODBC, SqlServer and VarBinary Columns
Posted on 1999-12-14
How does one use the binary fields in MSSQL from Visual C++?
When using the class wizard to create the class for the DB Table,
the binary field maps to a CByteArray. I can write to this table,
but if I read, I get a data truncation error. The rather ambiguous
help files on MFC suggest using CLongBinary instead, but the
CLongBinary documentation says to use CByteArray.