Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Pls: DBCC CHECKDB Command

Author  Topic 

sreehari
Starting Member

37 Posts

Posted - 2006-05-24 : 06:53:37
Hi

i am trying to give the following command in query browser

DBCC CHECKDB ('db1',repair_allow_data_loss) WITH NO_INFOMSGS

i am getting the message like
Repair statement not processed. Database needs to be in single user mode.
actually no one is accessing the database. but users are accessing another database in the same server.

what is the problem, when & how can i use the above command


Thanks in advance

mr_mist
Grunnio

1870 Posts

Posted - 2006-05-24 : 06:57:16
The error message tells you the problem -

Database needs to be in single user mode.

So do that.

-------
Moo. :)
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2006-05-24 : 07:00:34
It's saying the database needs to be in in single user mode not just no other users.
http://msdn2.microsoft.com/en-us/library/ms188236.aspx

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -