Article ID: 169470
Article Last Modified on 2/15/2007
164221 How to Enable Connection Pooling in an ODBC Application
Declare Function SQLSetEnvAttr Lib "odbc32.dll" (ByVal henv As Long,
ByVal Attribute As Long, ByVal Value As Long, ByVal StringLength As
Long) As Integer
' env attribute
Public Const SQL_ATTR_CONNECTION_POOLING = 201
Public Const SQL_ATTR_CP_MATCH = 202
' values for SQL_ATTR_CONNECTION_POOLING
Public Const SQL_CP_ONE_PER_DRIVER = 1
Public Const SQL_IS_UINTEGER = -5
nstatus = SQLSetEnvAttr(0, SQL_ATTR_CONNECTION_POOLING,
SQL_CP_ONE_PER_DRIVER, SQL_IS_UINTEGER)
SQLAllocEnv...
SQLAllocConnect...
SQLConnect...
SQLDisConnect...
SQLFreeConnect...
SQLFreeEnv...
For additional information, click the article numbers
below to view the articles in the Microsoft Knowledge Base: 237844 HOWTO: Enable ODBC Connection Pooling in VB ADO Application
228843 HOWTO: Implement Session Pooling from Visual Basic ADO Program
166083 How to Enable Connection Pooling in an OLE DB Application
189410 HOWTO: Enable or Disable Connection Pooling in IIS 4.0
216950 How to Enable ODBC Connection Pooling Performance Counters
238442 ODBC Connection Pooling Object Disappears from PerfMon
245543 INFO: ODBC Connection Pooling Counters in Performance Monitor
HKEY_LOCAL_MACHINE\Software\Odbc\Odbcinst.ini \ODBC Connection Pooling\Retry Wait
168250 IIS Performance Degrades with a Bad Connection
Additional query words: FAQ FAQs
Keywords: kbdatabase kbgrpdsmdac kbgrpdsvcdb kbinfo kbmdac250 kbmdac260 kbmdac270 kbodbc kboledb kbusage kbvbp KB169470