Re: Regarding Suspect Database

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Noorali Issani (naissani_at_softhome.net)
Date: 03/23/04


Date: Tue, 23 Mar 2004 16:15:52 +0500

Hari,

After doing all the steps which you told but still the status of the
database is Suspect - Emergency Mode, what should I do ? Can you tell me
about

Update sysdatabases set status = 32768 where name = "BadDbName"

Can you tell me that 32768 ( it represting what) , is there any other table
from where I can get the whole detail of this status, u getting me what I
wanna say ?

Thanks Hari,

"Noorali Issani" <naissani@softhome.net> wrote in message
news:u56RGi$DEHA.2052@TK2MSFTNGP11.phx.gbl...
> Thanks alot Hari
>
> "Hari Prasad" <hari_prasad_k@hotmail.com> wrote in message
> news:OUvqBX$DEHA.3716@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > Use emergency mode (also called bypass mode) to recover data when SQL
> Server
> > marks a database suspect and the automatic recovery will fail.
> >
> >
> > Setting the database status to emergency mode tells SQL Server to skip
> > automatic recovery and
> > lets you access the data. To get your data, use this script:
> >
> > Sp_configure "allow updates", 1
> >
> > Reconfigure with override
> >
> > GO
> >
> > Update sysdatabases set status = 32768 where name = "BadDbName"
> >
> > Sp_configure "allow updates", 0
> >
> > Reconfigure with override
> >
> > GO
> >
> > You might be able to use bulk copy program (bcp), simple SELECT
commands,
> or
> > use DTS to extract
> > your data while the database is in emergency mode,
> >
> >
> > Thanks
> > Hari
> > MCDBA
> >
> > "Noorali Issani" <naissani@softhome.net> wrote in message
> > news:e0F5Wr8DEHA.2052@TK2MSFTNGP11.phx.gbl...
> > > Hari , One question here... can you please explain this..
> > >
> > > 2. Start the database in Emergency mode , Update the Status column in
> > > master..sysdatabases table for that database to 32768.
> > >
> > >
> > > Thanks
> > > Noor
> > >
> > > "Noorali Issani" <naissani@softhome.net> wrote in message
> > > news:%23DqkBf8DEHA.3804@TK2MSFTNGP09.phx.gbl...
> > > > Thanks Hari...
> > > >
> > > > Regards
> > > > "Hari" <hari_prasad_k@hotmail.com> wrote in message
> > > > news:uhke752DEHA.3696@TK2MSFTNGP10.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > There are various possibilities for a Suspect status
> > > > >
> > > > > 1. The MDF or LDF file for the database is not available during
> > startup
> > > > > 2. LDF file missing or Corrupted
> > > > > 3. MDF file page allocation problems.
> > > > >
> > > > > 1. The first one can be resolved by executing "sp_resetstatus"
> stored
> > > > > procedure and restart SQL server services
> > > > > 2. Start the database in Emergency mode , Update the Status column
> in
> > > > > master..sysdatabases table for that database to 32768.
> > > > > After this database will be usable with out transaction log.
> AFter
> > > this
> > > > > create a new database and use DTS to transfer objects and data.
> > > > >
> > > > > 3. Third one is critical , try executing DBCC CHECKDB with
> > > REPAIR_REBUILD
> > > > > option. If the problem is not rectified
> > > > > wither restore from Backup or contact Microsoft support.
> > > > >
> > > > > Thanks
> > > > > Hari
> > > > > MCDBA
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > "Noor" <anonymous@discussions.microsoft.com> wrote in message
> > > > > news:3CAC7A08-1F9A-433A-83E3-CE5DD8A597FC@microsoft.com...
> > > > > > Can any body let me know about the suspect database what is the
> > > remedies
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Emergency Mode
    ... 1- the log file is corrupt, and this is the best news i ... data to the new database. ... Now if you don't see any data when on emergency mode then ... >> table and change it to Normal mode for backup but I ...
    (microsoft.public.sqlserver.server)
  • Re: suspect database
    ... Could you check the sql server error log for the cause for the SUSPECT ... Various Reasons for database going to suspect Status. ... For Option:2 How to set to Emergency Mode ...
    (microsoft.public.sqlserver.server)
  • Re: suspect database is sql 2000
    ... Set the database to start in emergency mode (Bypass recovery mode) ... Setting the database status to emergency mode tells SQL Server to skip ...
    (microsoft.public.sqlserver.server)
  • Re: Data recovery
    ... With SQL Server not running, ... I have created a new database with the same name as our original ... I then stopped the SQL Server and copied the original Trends ... I then updated the sysdatabases to Emergency mode for Trends and ...
    (microsoft.public.sqlserver.setup)
  • Data recovery
    ... I have created a new database with the same name as our original ... I then stopped the SQL Server and copied the original Trends ... I then updated the sysdatabases to Emergency mode for Trends and ... following message - Prior to updating sysdatabases entry for database ...
    (microsoft.public.sqlserver.setup)