Article ID: 182442
Article Last Modified on 8/9/2004
APPLIES TO
- Microsoft ActiveX Data Objects 1.5
- Microsoft ActiveX Data Objects 2.0
- Microsoft ActiveX Data Objects 2.1 Service Pack 2
- Microsoft ActiveX Data Objects 2.5
- Microsoft ActiveX Data Objects 2.6
- Microsoft ActiveX Data Objects 2.7
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q182442
SUMMARY
Adomts.exe is a sample that demonstrates how to use ActiveX
Data Objects (ADO) to pass a disconnected recordset from a Microsoft
Transaction Server (MTS) hosted DLL to a remote client via a Distributed
Component Object Model (DCOM).
This article demonstrates how to use a
lightweight Standard .exe client to connect to an MTS-hosted DLL and retrieve
an ADOR recordset through DCOM. This sample does not use Remote Data Service
(RDS) to create the business objects.
The code included here
demonstrates using both the
Connection.Execute and the
RecordSet.Open methods to create the ADODB recordset on the server and then
passes a disconnected ADOR recordset back to the client. This eliminates the
need for the ADODB DLLs to reside on the client.
The Server DLL has
also been tested as a COM+ component that is hosted on a Windows 2000 server.
Although the steps to create the DLL and client are identical, the steps to
create and export the COM+ component are different. To configure a DLL as a
COM+ component, follow these steps:
- In Control Panel, click Administrative Tools, and then click Component Services.
- Create the component as a Server Application.
- Before you export the component, right-click My Computer in the Component Services console, and then click Properties. On the Options tab, type the server's computer name in the Application Proxy RSN text box, and then click OK.
- Export the Component as an Application Proxy.
Additional query words: ADOMTS RDS remote oleserver
Keywords: kbhowto kbdownload kbdatabase kbfile KB182442