Click to See Complete Forum and Search --> : SQLGetData is returning -1 in StrLen_or_IndPtr field


harish_kolar
January 23rd, 2004, 01:16 AM
I am using SQLGetData function to get the binary data.
for few data i am getting the proper length in StrLen_or_IndPtr field(last parameter). For few data i am getting StrLen_or_IndPtr as -1 (SQL_NULL_DATA), even though data is present. What may be the reason and solution for this.

I am using SQL_C_BINRAY as the datatype.