Solved

DBCC MSDB Single User

Posted on 2008-10-02
8
849 Views
Last Modified: 2012-08-13
All of a sudden, our Veritas tape backup complained about 0xe0008443 SQL Database Consistency Check failure on the MSDB database.

I tried running:

dbcc checkdb (msdb, repair_allow_data_loss)

but it complained about msdb not being in single user mode.

I tried running:

alter DATABSE MSDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
dbcc checkdb (msdb, repair_allow_data_loss)
GO
alter DATABASE MSDB SET MULTI_USER WITH ROLLBACK IMMEDIATE
GO
but it generated a syntax error .

I tried right clicking the msdb database and manually going into single user mode, but it said other users had the database.

I tried stopping the sql server agent service, but that didn't help.

Any ideas??

Thanks,
Mike
0
Comment
Question by:mike2401
  • 5
  • 2
8 Comments
 
LVL 23

Accepted Solution

by:
bhanukir7 earned 500 total points
ID: 22627394
Hi,

before running the DBCC check did you stop the Veritas tape backup solution which is using the SQL DB. When you set it to Single user mode the same might have made that single connection. So ensure that all applications that are connecting to the SQL database are stopped and then place the DB in single user mode from command line.

then run the checks

bhanu
0
 

Author Comment

by:mike2401
ID: 22627541
nope, I can certainly try stopping veritas.  

BTW: did you spot any syntax error in the script above?

(I presume I need to past the into a query window and run it.

Thx
Mike
0
 

Author Comment

by:mike2401
ID: 22772706
bhanukir7,

I'm waiting to schedule some down time for the server - I haven't forgotten, and very much appreciate your suggestion,

Mike
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 23

Expert Comment

by:bhanukir7
ID: 22783710
yw mike.  as far as your dbcc part is concerned that does not seem to have any error.

the only that you need to do before running that dbcc is to ensure that none of the symantec services in the services.msc are running and then try altering the DB to single user mode forcing active connections to close.

bhanu
0
 

Author Comment

by:mike2401
ID: 22944284
Thanks for your help!!!
0
 

Author Closing Comment

by:mike2401
ID: 31502482
Thanks!
0
 

Expert Comment

by:aimds
ID: 24639254
Your problem is that your first line syntax is incorrect.  It should be Database not Databse
0
 

Author Comment

by:mike2401
ID: 24642204
Thank you aimds .

Good catch.

Since the call is closed, I don't think I can credit you with points, but thank you nonetheless!

Mike
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to shrink a transaction log file down to a reasonable size.

809 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