RE: Connection pooling
From: Ramdas (anonymous_at_discussions.microsoft.com)
Date: 05/12/04
- Next message: Graeme Malcolm: "Re: Generate an XML file from a stored procedure?!!"
- Previous message: Anith Sen: "Re: Error handling and transaction"
- In reply to: vishal subramaniam: "RE: Connection pooling"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Graeme Malcolm: "Re: Generate an XML file from a stored procedure?!!"
- Previous message: Anith Sen: "Re: Error handling and transaction"
- In reply to: vishal subramaniam: "RE: Connection pooling"
- Messages sorted by: [ date ] [ thread ]