FILE: Adomts.exe Shows Using ADO an MTS Component via DCOM (182442)
The information in this article applies to:
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
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.
Modification Type: | Minor | Last Reviewed: | 8/9/2004 |
---|
Keywords: | kbdownload kbDatabase kbfile kbhowto KB182442 kbAudDeveloper |
---|
|