I think that this is some sort of an ODBC error, where possibly the parameters passed to ODBC, or the query are incorrect.Have you got any further error messages or diagnostics?
Marc
System.Data.Odbc.OdbcException: ERROR [HY090] [IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]Invalid value stored in pcbValue.
at System.Data.Odbc.OdbcConnection.HandleError(HandleRef hrHandle, SQL_HANDLE hType, RETCODE retcode)
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method)
at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()
at ProrgamMaint.modMain.SaveProgramItems(Int32& iRowsAffected) in C:\Source\@DotNet\ProrgamMaint\modMain.vb:line 927
Sorry bigfoot, but you're really outside my scope of experience. The only thing that springs to mind, from everything I've seen and read, is that either:
a) Your ODBC parms when attempting the update are somehow wrong
b) You're not populating all the fields when updating
If I was you, I would try adding as many diagnostics as possible, and display all fields that are to be updated just prior to the call. You might want to try replacing the update with a straight select. If you have any logging facilities, turn them on, and if possible pause execution just prior to the ODBC call, so that you can see better what is occurring.
I got in touch with IBM. It seems that the .NET environment requires an updated ODBC driver. M$ has one too in their downloads page. Just search for .net and odbc. Then you must include it in your project and use Microsoft.Data.Odbc and not System.Data.Odbc.
I'll have more info as soon as I get back to work on Monday. I just might have it working. I created a small test project that worked fine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.