Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DBCC MSDB Single User

Posted on 2008-10-02
8
Medium Priority
?
903 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 2000 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
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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

916 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