Not enough fields allocated in SQLDA

Item Value
SQLCODE -182
Constant SQLE_SQLDA_TOO_SMALL
SQLSTATE 07002
Sybase error code 13636
ODBC 2 State 07001
ODBC 3 State 07002

Probable cause 

There are not enough fields in the SQLDA to retrieve all of the values requested.