Click to See Complete Forum and Search --> : getting the binary data length from the database using ODBC API


harish_kolar
January 21st, 2004, 01:53 AM
I am using ODBC for the database connectivity in my C++ application.
I am having a binary data in one of my database columns.
To retrive this, i am calling SQLGetdata function.
For this i need to pass a char pointer with suffiecient memory allocated.
But i don't know the binary data length to allocate the memory.
How to get the length of the binary data using ODBC API.
I am not using MFC.

Sam Hobbs
January 22nd, 2004, 12:05 AM
Perhaps your binary data is a BLOB. If it is, then search for information about BLOBs.