Solved

Maintenance plan failed - db in single user mode

Posted on 2006-06-28
6
609 Views
Last Modified: 2007-12-19
I have a maintenance plan for a large DB (100+ GB) that failed last night.  I checked on it this morning and the DB is in single user mode.  I have since went into the plan and unchecked Attempt to repair minor problems.  However, the process is still running.  How can I kill the maintenance plan to put it back in multi user mode?  And are there any adverse side effects to doing that?  I assume that at that point, I can sp_dboptions 'myDatabase', 'single user', 'false'.

-Steve
0
Comment
Question by:BigMonkeyHead
[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
  • 4
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
TRACEYMARY earned 250 total points
ID: 17000545
go to sql query and do sp_who2

you should see in there backup........in the command.
you then can delete that process by kill spid where spid is the number.

Or you can try stop the job in em.
If it is a backup that could take a while to clear...by the sp_who2 will tell you if it is running.

Attempt to repair minor problems - why you do this ? what was the maintenance plan ?
0
 
LVL 1

Author Comment

by:BigMonkeyHead
ID: 17000645
I have used sp_who2 to see the job - disk i/o changes each time the sp is ran (so it's still running).

I wasn't the one who set up the plan - it's supposed to simply be a backup.

Is there anything bad that can happen if I kill spid?
0
 
LVL 7

Expert Comment

by:TRACEYMARY
ID: 17000705
If it is still running............and the disk i/o is changing then it is still progressing.
How long as it been running..........(is there enough space for the backup to be done....)

Are there any locks on the database at all?

If you can leave it for a while...i would do that...............

I have in pass deleted a backup and had no problems..........(but if you can leave it then i would until say end of today and see if it has finished....? ) is that possible.....
Is the backup bak grewing....in size ...as it backups.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:TRACEYMARY
ID: 17000739
Oh i see its doing a optimization attempt to repair and minor issues.......and a backup....
on a 100 gig database...........hmm that could take some time....

Is there any thing on the error logs by anychance.....and check the locks.....also.



0
 
LVL 1

Author Comment

by:BigMonkeyHead
ID: 17000744
It started about 10 hrs ago - and the maint plan history shows it tried to repair 19 seconds in.  I was working with our sys admin - he killed a 3rd party backup job that was hanging too.  Next time I checked sp_who2, it was done.  I then changed it to multi user and it's fine.

Thanks for your help - I'll look into kill spid to see what it might do.
0
 
LVL 7

Expert Comment

by:TRACEYMARY
ID: 17001080
No problem...if it seems to be running just do not kill....that my kind of rule...
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Get Store Procedure Column Name As Row 5 39
SQL- GROUP BY 4 21
SQL Server In place upgrade from 2012 to 2014 12 20
Delete old Sharepoint backups 2 12
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

740 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