Assonet River Design Group : Portfolio : Code Snippets : Contact

Database Downtime Alert (1.2)
Display & email alert messages upon database connection failure

ASP Server Behavior for Dreamweaver UltraDev

written by Pete Erwin
April 23, 2002


Background: My Web site is hosted on a shared server and from time to time the connections are not released in IIS for various reasons (bad coding for example). When a visitor opens a page and can't get a connection to the database, they would get an ugly MS ODBC Error message and leave the site confused.

Using this server behavior, you can write a custom error message the visitor will see, rather than the default MS ODBC error. Plus an email (CDONTS) can be sent automatically to your webmaster or webhosting provider to keep them on their toes.

Download Extension Download Now (6kb)

Once installed:

Server Behaviors > Assonet River > Database Downtime Alert

View screen shots & sample code

Send comments & suggestions.