Hi,
Obviously the connection has problems, that's why it can't open it, and in
your "finally" part it can't close it either, since it wasn't opened.
I think you can isolate the problem by just creating the connection, open
and close it. The same will happen then.
If the connection does work sometimes, then there isn't anything wrong with
your application, or MDAC. Rather you may be experiencing a network problem,
or a SQL problem.
use try and catch while opening the connection, and check the error
description and source that it will return.
Leo