PRB: Error Updating Records Using DB2OLEDB and Server-Side ADO Cursor (286245)
The information in this article applies to:
- Microsoft OLE DB Provider for DB2 4.0 SP3
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Host Integration Server 2000
- Microsoft SNA Server 4.0 SP3
- Microsoft SNA Server 4.0 SP4
This article was previously published under Q286245 SYMPTOMS
When you use an ActiveX Data Objects (ADO) server-side cursor with the Microsoft OLE DB Provider for DB2 (DB2OLEDB) that comes with Host Integration Server or with SNA Server 4.0 SP3 or SP4, the following error may occur when you try to update a recordset:
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
CAUSE
You have not included the FOR UPDATE option in your SQL statement. For example, you may have opened the ADO Recordset with a SELECT statement like the following:
SELECT * FROM SCHEMANAME.TABLENAME RESOLUTION
To allow updates to an ADO Recordset with the DB2OLEDB provider and a server-side cursor, you must use the FOR UPDATE option; for example:
SELECT * FROM SCHEMANAME.TABLENAME FOR UPDATE STATUS
This behavior is by design.REFERENCES
For additional information about DB2OLEDB and cursors, click the following article numbers to view the articles in the Microsoft Knowledge Base:
269597
PRB: Limitations of ADO Client Cursor and Data-Bound Controls with DB2OLEDB
271131 Use the DRDA_VB Sample for DB2OLEDB
218590 INF: Configuring Data Sources for the Microsoft OLE DB Provider for DB2
216810 Creating Packages for Use with ODBC Driver for DB2 and OLE DB Provider for DB2
269626 INFO: Permissions Needed to Create Packages Using DB2OLEDB on DB2 and DB2/400
Modification Type: | Major | Last Reviewed: | 2/16/2004 |
---|
Keywords: | kb3rdparty kbDB2 kbDriver kbprb kbProvider KB286245 kbAudDeveloper |
---|
|