MDAC 2.5 SDK - ADO
Step 1: Specify a Server Program (RDS Tutorial)
See Also
You are Here...
- Specify the program to be invoked on the server, and obtain a proxy.
- Invoke the server program. Pass parameters to the server program that identifies the data source and the command to issue.
- The server program obtains a Recordset object from the data source, typically by using ADO.
- The server program returns the final Recordset object to the client application.
- On the client, the Recordset object is optionally put into a form that can be easily used by visual controls.
- Changes to the Recordset object are sent back to the server and used to update the data source.
Discussion
In the most general case, use the RDS.DataSpace object CreateObject method to specify the default server program, RDSServer.DataFactory, or your own custom server program (business object). A server program is instantiated on the server, and a reference to the server program, or proxy, is returned.
This tutorial uses the default server program:
Sub RDSTutorial1()
Dim DS as New RDS.DataSpace
Dim DF as Object
Set DF = DS.CreateObject("RDSServer.DataFactory", "http://yourServer")
...
Next Step 2: Invoke the Server Program