Either of two things: check the return value of the connect
method, and if it fails, check the reason. Or connect to
a database you know exists, and once connected, check to
see whether the database you are interested in exists.
Abigail
Comment on Re: check if databse exists before connection is made!