I am getting an "Invalid Descriptor Index" Error in an MFC/C++ application that I am porting to DB2. I have done a lot of research and cannot figure out what is causing the problem other than it is occurring with an SQLExtendedFetch in the SQL log file by doing a trace through ODBC. I have found some stuff saying it can be caused by using large data types or columns that use large data types and their order in a SELECT statement. The only other thing I can think of is that my Recordset has integer datatypes for the fields in the DB2 table that are signed decimal but have 0 decimal places. Any light anyone can shed on the subject would be really helpful. Not to be lazy but changing the integers in my application will be a lot of work and it is something I do not want to embark on unless I know it may be causing the problem.