How To Write a COM+ Pooled Object That Pools an ADO Connection (266690)
The information in this article applies to:
- Microsoft COM+ 1.0
- Microsoft COM+ 1.5
This article was previously published under Q266690 SUMMARY
One of the more important uses of COM+ object pooling is the pooling of database connections. This is useful for several reasons. You can pool database connections to limit the number of connections that can be made to a database by setting a maximum object pool size. Pooling data connections can also provide a performance improvement over Microsoft Data Access Components (MDAC) connection pooling. Because ActiveX Data Objects (ADO) is the most commonly used data access method, pooling ADO connections is especially useful. This article describes some of the issues that are associated with pooling ADO connections.
The ObjectPoolingSample.exe sample demonstrates how to pool an ADO Connection object through a COM+ pooled object. The sample consists of two Microsoft Visual C++ Active Template Library (ATL) projects: one project contains a pooled component, the other project contains a client object for the pooled component. The Readme.txt file that comes with the sample provides more details about how the sample is structured. The following file is available for download from the Microsoft Download Center:
Release Date: Aug-16-2001
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 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.
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbDatabase kbfile kbhowto kbSample KB266690 kbAudDeveloper |
---|
|