Re: db maintanence plan failure

From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 02/14/05


Date: Mon, 14 Feb 2005 16:27:03 +0100

If my car keep breaking down, I'd like to know why that happen so I can avoid it keeping breaking
down when I travel at high speed. I.e., if you get such problem, you want to do root-cause analysis
why they happen. Often it is because hardware problems.

In other words, the option in maint wiz is IMO not well thought through, and AFAIK, it will be
removed in next version of SQL Server. The option, btw makes maint wiz execute DBCC CHECKDB using
the REPAIR_FAST option.

To be able to run DBCC CHECKDB with FAST_REPAIR, the database must be in single user mode, so if you
have users in the database, the command and subsequently job will fail.

Also, you might want to check out: http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp

-- 
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Param R." <pr@nospam.com> wrote in message news:%23Czx7SqEFHA.1188@tk2msftngp13.phx.gbl...
> OK. But wouldnt I want it to fix any problems? What is the best way then?
>
> thanks!
>
> "Uri Dimant" <urid@iscar.co.il> wrote in message news:eSii%23klEFHA.2032@tk2msftngp13.phx.gbl...
>> Param
>> Under Tab 'Integrity' uncheck 'Attempt to repair any minor problems'
>> SQL Server  is trying to repair some problems but it requires database to be
>> in single user mode.
>>
>>
>>
>> "Param R." <pr@nospam.com> wrote in message
>> news:ed%23BifjEFHA.1012@TK2MSFTNGP14.phx.gbl...
>>> Hi all!
>>>
>>> I have a DB Maintanence plan configured to run once a week that is
>> supposed
>>> to perform optimizations and integrity checks on all user databases. This
>> is
>>> split into 2 seperate jobs when I look at the Jobs node under SQL Agent.
>> The
>>> optimizations is set to run at 4 am & the integrity at 5 am. It appears
>> that
>>> the integrity check job keeps failing. The log says something about
>>> 'mosesdb' needs to be in single user mode. Any ideas? The optimization
>> jobs
>>> seems to complete OK
>>>
>>> TIA!
>>>
>>>
>>
>>
>
> 


Relevant Pages

  • Re: db maintanence plan failure
    ... Maint wiz has an option to create a report file for each execution. ... trying to set the database in single user mode, ... users connected to the database. ... split into 2 seperate jobs when I look at the Jobs node under SQL Agent. ...
    (microsoft.public.sqlserver.server)
  • Re: Cluster will not fail over.
    ... This worked bringing up the sql server in minimal mode. ... > Start SQL Server in single user mode with trace flag -T3608. ... > SQL from recovering anything except the master database. ... > You didn't mention whether you blew the cluster away or not or just ...
    (microsoft.public.sqlserver.clustering)
  • Re: torn page
    ... It is not required to make the SQL Server to start in single user mode. ... the DBCC with Rebuild option to sinlge user. ... How to make database to single user:- ...
    (microsoft.public.sqlserver.server)
  • Re: DBA dissappointed in sql server 2005
    ... "Charles Pritt" wrote in message ... > it backsup a database. ... I have 75 seperate sql server boxes, some with multiple instance, all ... > with many many databases and scores of jobs. ...
    (microsoft.public.sqlserver.server)
  • Re: Delphi 5 + Win 2K
    ... > " If the database is cleaned up by deleting many jobs it seems to work ... It does not mean SQL server jobs... ... Tree.Items.SaveToFileand then put into the database using ...
    (borland.public.delphi.database.ado)