Solved

DBCC MSDB Single User

Posted on 2008-10-02
8
878 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
[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
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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 setup several different housekeeping processes for a SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

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