You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For fields exceeding the buffer size, SQLGetData is used to retrieve the data with multiple fetches. At this point the columns are already bound, which generates an error with drivers without SQL_GD_BOUND.
Sorry, but I don't have a fix available. I'm using SQLSetStmtAttr
to set SQL_ATTR_MAX_LENGTH to colBufSizeDefault to truncate these
fields to the size of the buffer and avoid the error (Invalid descriptor index), but it's
just a workaround (currently I have no way of retrieving all the data).
For fields exceeding the buffer size, SQLGetData is used to retrieve the data with multiple fetches. At this point the columns are already bound, which generates an error with drivers without SQL_GD_BOUND.
"If the driver does not support extensions to SQLGetData, the function can return data only for unbound columns with a number greater than that of the last bound column." - http://msdn.microsoft.com/en-us/library/ms715441%28v=vs.85%29.aspx
The text was updated successfully, but these errors were encountered: