Invalid SQL descriptor name

Item Value
SQLCODE -642
Constant SQLE_INVALID_DESCRIPTOR_NAME
SQLSTATE 33000
Sybase error code 601
ODBC 2 State 33000
ODBC 3 State 33000

Probable cause 

You attempted to deallocate a descriptor that has not been allocated.