Check the database connection

retkehing

Well-known member
Joined
Feb 5, 2006
Messages
153
Programming Experience
Beginner
I have completed a form which it is used to let the user input username and password as well datasource. When they press ok, i want the system to check about the database connection whether it is true of false.
 
one way to do it is to put the connection in a try/catch block in which if the connection isnt a good one an error will be thrown (and caught in the try/catch block)
 
Back
Top