Article ID: 185423 - Last Review: March 14, 2005 - Revision: 1.1 PRB: Most ADO Recordset Properties Are Not MarshalledThis article was previously published under Q185423 On This PageSYMPTOMS
Most ActiveX Data Objects (ADO) Recordset properties such as STATUS and SOURCE are not marshalled between processes. In ADO 1.5, only a couple of
underlying OLE DB properties of the rowset get marshalled with the rowset;
DBPROP_IRowsetChange and DBPROP_IRowsetUpdate. When passing a recordset between processes, you primarily get the recordset data without any state.
In the case of the STATUS property, it should be noted that error based status codes originating from operations such as UPDATE, UPDATEBATCH, and so forth, are not preserved. Only the data is preserved. The SOURCE property will be null when marshalling a recordset irrespective of what is set at the server. RESOLUTION
You must return the Recordset state data, such as SOURCE and STATUS properties, explicitly in your own data structures. For example, if you call a method of a business object that returns a recordset, you would also create an argument of the method that can be used to return the state data.
STATUS
This behavior is by design.
MORE INFORMATIONSteps to Reproduce Behavior
APPLIES TO
| Article Translations
|

Back to the top
