Re: Limiting session pool size

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Ken" <Ken@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C6CB8FEE-4267-4278-8FCC-16D3A7ADA0CC@xxxxxxxxxxxxxxxx
Is there a way to limit the size of an ADO session pool?

Note that I am not referring to the ODBC connection pool and this is ADO,
not ADO.NET.

Yes, so you are talking the OLE DB session pooling, right?

I am using SQLOLEDB in this particular instance. I have a
simple, single threaded application that opens a connection when it needs
to
do some work, and then closes it again. Although most times it takes from
the
pool, it occasionally opens up new connections even though there are
perfectly good ones in the pool.

Yes but are you following the rules?
If not the "perfectly good ones" may be ignored.
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmdac/html/pooling2.asp
and cursor halfway down to where OLE DB session polling is talked about.
See paragraphs with heading "Tips for OLE DB Users"

Stephen Howe


.



Relevant Pages

  • Re: Recommended data access model
    ... This is from MDAC 2.8 SDK. ... "The Role of ADO in MDAC ... The Microsoft Data Access Components provide data access that is ... easy-to-use interface to OLE DB. ...
    (comp.databases.ms-access)
  • Re: Table adapter ???
    ... ADO was a lightweight COM layer built on top of OLE DB. ... ADO and OLE DB updates came in downloads of the MDAC pack (Microsoft Data ... It also came with a OLE DB provider for ODBC which meant ...
    (microsoft.public.data.ado)
  • Re: ADO
    ... OLE DB, you need to usually use C++ as you are calling API's directly. ... Eventually, ADO will no longer be supported, and ADO.NET is the way forward ... >> Mike Epprecht, Microsoft SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: ADO
    ... OLE DB is a data access paradigm designed to provide an object interface to ... OLE DB data "providers". ... The original question asked which is better: ADO or OLE DB. ...
    (microsoft.public.data.ado)
  • Re: CADORecordBinding ... adDate
    ... That's ado ENUM reference "adDBTimeStamp". ... So, speaking from and OLE DB perspective, which is where I am when I do ... >> The sample in MSDN states using a DBDATE variable, ...
    (microsoft.public.data.ado)