Checking Database Connection
Posted on 2006-11-02
I have an application that connects with a database inside our firewall. When the application starts, I want to check to see if the user can connect to the database and shutdown cleanly if not.
Is the best way to check if the user can connect just doing an open and close on the db and see if it fails? Or is there a better way?