Solved

80004005 SHUTDOWN is in progress

Posted on 2010-09-03
4
2,089 Views
Last Modified: 2012-05-10
Hello All;

My hosting provider once a month reboots their SQL Server.
And during this time, I get the typical white page that states


Microsoft OLE DB Provider for SQL Server error '80004005'

SHUTDOWN is in progress.

/ACN.asp, line 16

I need to find a way to capture this warning/error
And display another type of message to my visitors instead of this.

Can someone please provide me with a little insite/code for capturing this error?

Thank you
Carrzkiss
0
Comment
Question by:Wayne Barron
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
rhodesb earned 500 total points
Comment Utility
In asp you can use:
ON ERROR RESUME NEXT
Followed by your code for opening your database connection.
After your db connection attempt, you can check the Err error object:
if  Err.Number <> 0  then
   ... error handling code

There are lots of references for this online just search for "ON ERROR RESUME NEXT" or "ASP Err Object" or something similar.
0
 
LVL 30

Author Closing Comment

by:Wayne Barron
Comment Utility
I think I can handle it from here.

Thank you for the heads up.
Forgot about the on error resume next.

Carrzkiss
0
 
LVL 4

Expert Comment

by:rhodesb
Comment Utility
No problem, we all forget stuff we haven't used in a while.
Thanks for the points.
0
 
LVL 30

Author Comment

by:Wayne Barron
Comment Utility
yep, Try about 3 years since I last used it.
Not good practice, but just totally forgot about it, since I pretty much grab
My regular errors in other ways.

Thanks again.
Have a great weekend.

Carrzkiss
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now