Home All Groups Group Topic Archive Search About

How a get the ADO connection fail error?

Author
10 Jul 2006 4:53 AM
Cylix
I would like to get the error context about the fail connection,
I am using ADODB.connection to connect the Database.

Now, I just using
Try
   conn.open(connectionString)
Catch ex as exception
   msgbox(ex.message)
End try

Any context just provided by ADODB to get more details about the fail?

Author
10 Jul 2006 8:54 AM
M. Posseth
Why do you use Classic ADO ???


why don`t you use the managed ADO.Net classes ???


regards

Michel Posseth [MCP]



Show quoteHide quote
"Cylix" wrote:

> I would like to get the error context about the fail connection,
> I am using ADODB.connection to connect the Database.
>
> Now, I just using
> Try
>    conn.open(connectionString)
> Catch ex as exception
>    msgbox(ex.message)
> End try
>
> Any context just provided by ADODB to get more details about the fail?
>
>