RE: Connection pooling

From: Ramdas (anonymous_at_discussions.microsoft.com)
Date: 05/12/04


Date: Wed, 12 May 2004 08:41:02 -0700

If i pass an invalid database name in the connector string for Getconnection method It errors out
I have error handler and it doesnt come to my error handler

Private Function GetPool(strConn As String) As ADODB.Connection
 On Error Resume Next
      WriteFile "GetPool"
      set GetPool = adocpPool.GetConnection(strConn)
      WriteFile "done"
If Err.Number > 0 Then
    WriteFile "Error"
end if
end funciton

if I pass invalid database name
i get the folloing in the log file
------------------------
GetPool

----------------------

I expected
------------------------------
GetPool
Error
----------------------------
Any ideas?

My COM+ component is used inside an asp page