I have always been under the impression that connection pooling (or more
appropriately called resource pooling) in ADO object is automatic when
connecting through OLE DB.
However, from MS Article
http://msdn.microsoft.com/library/de...us/dnmdac/html
/pooling2.asp, it suggests that one needs to keep one ADO connnection alive
for connection pooling to work under OLE DB.
On the other hand, in every other MS documentation, it is suggested that
connection should be closed explicitly as soon as possible for performance
reasons.
I connect to data base using the following method
dim conn as ADO.Connection
...
set conn=new ADO.Connection
with conn
.provider="SQLOLEDB"
.connectionstring="User ID=MyID; Password=MyPassword; Data
Source=MySource; Initial Catalog=MyDatabase"
.open
end with
Am I taking advantage of connection pooling? or am I better off connecting
using ODBC for OLEDB? How do I connect using ADO via ODBC?
Thanks in advance
