SharkBait Posted March 7, 2005 Posted March 7, 2005 Hello, I am curious as how to I check wether or not my connection to my MySql database works. When I can connect to the database via my connection script etc, all works great. But if the server that the database is down, my program then gets a runtime error and crashes. How can I check this so that if the server is down, I can exit the routine it is in so that it does not crash. Quote
michael_hk Posted March 8, 2005 Posted March 8, 2005 Use try {} catch {} Quote There is no spoon. <<The Matrix>>
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.