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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Error Trapping

Status
Not open for further replies.

TooGoon

Technical User
Jul 8, 2003
29
US
I have the pleasure of working with a distinctly flaky odbc connection. It tends to fail on startup but it also fails randomnly throughout my time operating on the database.

So I have two questions:
How can I trap any and every ODBC connection failure message and deliver a custom error message to the user, so they won't have the bejesus scared out of them?

And is there anything that can be done to improve the odbc connection to ensure that it stays open (we're operating off of a lan and the odbc connection is to a PostgreSQL database made by one of the it guys)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top