Article ID: 182442 - Last Review: August 9, 2004 - Revision: 2.3 FILE: Adomts.exe Shows Using ADO an MTS Component via DCOMThis article was previously published under Q182442 On This PageSUMMARY 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:
MORE INFORMATIONThe
following file is available for download from the Microsoft Download
Center: ADOMTS.EXE
(http://download.microsoft.com/download/vb50pro/sample3/1/win98/en-us/adomts.exe)
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Visual Basic ADO / MTS - DCOM Sample Readme.txt FileThis sample demonstrates using ADO to pass a disconnected recordset from an MTS hosted DLL to a remote client via DCOM.The file mentioned here is a self-extracting zip file that creates a folder named ADOMTS with separate client and server subfolders. The source code for each project can be found in the project's corresponding folder. Steps to Run the Sample File
How Microsoft Transaction Server (MTS) Handles DCOM
APPLIES TO
| Article Translations
|
Back to the top
