Link to home
Start Free TrialLog in
Avatar of muellerfan
muellerfan

asked on

Checking Database Connection

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?

Thanks,
Christie
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of muellerfan
muellerfan

ASKER

Thanks for confirming my thoughts!