CDynamicAccessor
-
Good day, Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks. Bret Faller Odyssey Computing, Inc.
-
Good day, Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks. Bret Faller Odyssey Computing, Inc.
You may have been hit by issue described in KB article Q238539. Tomasz Sowinski -- http://www.shooltz.com
-
Good day, Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks. Bret Faller Odyssey Computing, Inc.
It might not be the same problem but I ran into this error yesterday. It turned out I had an identity column in the column map. It would return this error when calling setdata.
-
You may have been hit by issue described in KB article Q238539. Tomasz Sowinski -- http://www.shooltz.com
I tried deriving a class and adding that support but still no go. I am using an ODBC driver because for some reason the Jet drivers don't support the options I need. Bret Faller Odyssey Computing, Inc.
-
I tried deriving a class and adding that support but still no go. I am using an ODBC driver because for some reason the Jet drivers don't support the options I need. Bret Faller Odyssey Computing, Inc.
I am using an ODBC driver because for some reason the Jet drivers don't support the options I need. Maybe ODBC over Jet doesn't support these options either. Anyway, you need to reduce your problem to some simple case: can you SetData on simple table with 1 integer column? Are you sure you're calling SetStatus for each field in accessor? Tomasz Sowinski -- http://www.shooltz.com