Solved

80004005 SHUTDOWN is in progress

Posted on 2010-09-03
4
2,167 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

623 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