Skip to main content
Inspiring
February 24, 2009
Question

Error Message when SQL is unavailable

  • February 24, 2009
  • 1 reply
  • 296 views
Our server is going to have some maintenance done in the middle of the night so the SQL server that our website runs from will be unavailable for about 30 minutes. We want to do a pretty error page letting people know that maintenance is being done. CF will still be running. I must not be operating on all cylinders today because the answer seems to be in the back of my mind but I can't figure out for the life of me what it is. We already trap for errors with CFERROR and a custom error page. Will that catch it? If it does, I guess we would just need to change the message???
This topic has been closed for replies.

1 reply

Inspiring
February 24, 2009
In your application.cfc, onRequestStart method, write some code to re-direct to the error page if now() is between timestamp A and timestamp B.