Knowledge Base

INFO: Disconnected Recordsets with ADO or RDS

Article ID: 190717

Article Last Modified on 5/17/2007


APPLIES TO


This article was previously published under Q190717

SUMMARY

With the introduction of the Advanced Data Connector (later renamed the Remote Data Services of ActiveX Data Objects [ADO]), it is possible to create a disconnected recordset. In addition, the Distributed Component Object Model (DCOM) allows you to marshall COM objects across computer boundaries, providing similar (but not identical) functionality to Remote Data Service (RDS).

This article describes what a disconnected recordset is and the differences in implementation.

MORE INFORMATION

Disconnecting a recordset means you can view the recordset's data after severing the connection to the data store that generated the recordset. You can create a disconnected ADO recordset in process with a recordset whose CursorLocation property is adUseClient and whose ActiveConnection property is set to NULL/Nothing. You can then pass this recordset to a remote client using either RDS or DCOM (or both together).

In ADO, you generate the recordset normally, as you would any other recordset, then disconnect it from the connection by setting the Recordset.ActiveConnection property to NULL/Nothing. Then you can close the Connection object.

In RDS, you generate an ADO recordset by requesting it through the use of RDS client components.

Techniques to Pass Disconnected Recordsets

There are four techniques you could use to pass a disconnected recordset to a remote client.

REFERENCES

You can download Data Access SDK 2.0 from the following Web site: You can obtain the "Whats New in ADO 2.0" white paper from the following Web site: For additional information, please see the following articles in the Microsoft Knowledge Base:

183609 FILE: Rdsvb.exe Demonstrates How to Use RDS with Visual Basic

183628 HOWTO: Using the RDS DataFactory via Standard ADO Open Method

182442 FILE: Adomts.exe Shows Using ADO w/ an MTS component via DCOM

175510 FILE: VB5DCOM.EXE: Using Callbacks and WithEvents with DCOM


Additional query words: kbADO100 kbADO150 kbADO200 kbDatabase kbRDS100 kbRDS110 kbRDS150 kbRDS200 kbVBp600FAQ kbADO210sp2 kbmdac210sp2

Keywords: kbdatabase kbinfo kbmdacnosweep KB190717