INFO: Disconnected Recordsets with ADO or RDS

ID: Q190717


The information in this article applies to:


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 discusses 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

The Data Access SDK 2.0 can be downloaded from the following Web site:

http://www.microsoft.com/data/download.htm
The "Whats New in ADO 2.0" whitepaper can be obtained from the following Web site:
http://msdn.microsoft.com/library/
For additional information, please see the following articles in the Microsoft Knowledge Base:
Q183609 FILE: Rdsvb.exe Demonstrates How to Use RDS with Visual Basic
Q183628 HOWTO: Using the RDS DataFactory via Standard ADO Open Method
Q182442 FILE: Adomts.exe Shows Using ADO w/ an MTS component via DCOM
Q175510 FILE: VB5DCOM.EXE: Using Callbacks and WithEvents with DCOM


Additional query words: kbrds kbADO100 kbADO150 kbADO200 kbADO201 kbRDS100 kbRDS110 kbRDS150 kbRDS200 kbDCOM


Keywords          : kbADO100 kbADO150 kbADO200 kbDatabase kbRDS100 kbRDS110 kbRDS150 kbRDS200 kbVBp600FAQ 
Version           : WINDOWS:1.0,1.1,1.5,2.0
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: July 20, 1999