PRB: Updating ADO Recordset Persisted from Read-Only Cursor May Fail (245367)
The information in this article applies to:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 (GA)
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q245367 SYMPTOMS
When you try to update a persisted ADO recordset from a read-only cursor, the following error appears:
Run-time error '-2147467259 (80004005)':
Insufficient base table information for updating or refreshing.
CAUSE
In ADO 2.0 and later, you can use the SAVE method on a recordset object to
persist recordsets to local storage and reload them later. For optimization purposes, when a read-only recordset is persisted, ADO does not set the Unique Rows property on the provider. That is, no base table information is persisted. An update error occurs when you try to update a recordset due to lack of base table information.
RESOLUTION
Before updating a recordset that has been persisted, make sure that it was opened and persisted with attributes that allow updating. See the "More Information" section for sample code.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbprb KB245367 |
---|
|