Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

catch error connection

Status
Not open for further replies.

cumap

IS-IT--Management
Jul 9, 2007
268
US
hi all,

I'm looking for a way to catch MySQL db connection error before Godaddy throws me a error page that return no helpful error info at all.

What the error particular is that I'd like to check whether a database is currently available on the server of not and return a error message or move on with the connection.

Also, I wonder whether checking existing tables is using the same method or not.

Thank you for any help.
 
Are you sure you ask in the right forum?
This is SQL Server not MySql one :)

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
You are totally right. I actually do want to ask about mysql but can't locate the forum in here so I thought this MS SQL is closed enough, am I way off?

I'm writing the script within ASP environment, but I doubt that the people in that forum would appreciate the question any better. Please point me to the right forum. Thank you!
 
Sounds to me like you may be better off using the ASP.net forum here:



----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top