PRB: ADO Recordset That Is Persisted as XML Doesn't Save All Data If You Use Default Lock Type (303791)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
This article was previously published under Q303791 SYMPTOMS
When you persist an ADO recordset as XML, the ADO recordset does not save the BaseCatalog, BaseTable, BaseColumn, and KeyColumn information if you use the default LockType property adLockReadOnly.
CAUSE
The BaseCatalog, BaseTable, BaseColumn, and KeyColumn information is missing because the recordset from which the XML is derived is read-only.
When you do not specify the LockType property, it defaults to adLockReadOnly, and the recordset's IRowsetUpdate and Server Cursor properties are false.
In a LockType for which the recordset is updateable, XML contains an "rs:updatable='true'" attribute along with the BaseCatalog, BaseTable, BaseColumn, and KeyColumn information.
STATUS
This behavior is by design.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
245367 PRB: Updating ADO Recordset Persisted from Read-Only Cursor May Fail
Modification Type: | Major | Last Reviewed: | 8/7/2001 |
---|
Keywords: | kbDSupport kbprb KB303791 |
---|
|