Solved

80004005 SHUTDOWN is in progress

Posted on 2010-09-03
4
2,158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
rhodesb earned 500 total points
ID: 33600889
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 31

Author Closing Comment

by:Wayne Barron
ID: 33600941
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
ID: 33600947
No problem, we all forget stuff we haven't used in a while.
Thanks for the points.
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 33600962
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

734 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