Re: MSDB (Subspect)

From: Hari (hari_prasad_k_at_hotmail.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 17:35:02 +0530

Hi Tiber / Philip,

I have one more suggestion to this issue, I feel that during the MSDB mdf
and LDF physical file copy (cold Backup), they would have started the SQL
server service. In this case during MSDB startup the files may be used by
the backup process and startup would have been failed and marked the
database "Suspect".

If this case he can run the procedure sp_resetstaus <dbname> and restart sql
server service.

steps:
1.
Use Master
GO
EXEC sp_resetstatus <dbname>

2. Stop & Start the SQL Server

Thanks
Hari
MCDBA

2."Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote
in message news:OMEBrpsJEHA.428@TK2MSFTNGP11.phx.gbl...
> Probably because the database was damaged when you took the backup. Do you
perform regular DBCC checks against
> the MSDB database?
>
> You can always rebuild the system databases (rebuildm.exe). This is a
rather advanced option, don't do this
> unless you know what happens and how it work.
>
> Or perhaps use another SQL Server. Disconnect from network. Make sure you
have the same machine name. Install
> SQL Server. Make sure you select the same collation as the production
machine. Stop that SQL Server. Copy the
> files from the msdb database to the production SQL Server. You will of
course have an "empty" msdb database
> now. This should work, but is most probably not supported.
>
> Also, I think that you can run the script file which creates the msdb
database. You probably need to set some
> trace flag to allow you to drop the msdb database in the first place. This
could be documented in KB 224071.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
>
> "Philip" <anonymous@discussions.microsoft.com> wrote in message
> news:5ACC3100-003F-4686-9AC7-06603C8EB86E@microsoft.com...
> >
> > Hi,
> >
> > I have already tried restore the msdb database from the backup but don't
know why still subspected.....
> >
> > Any Idea?
> > ----- Tibor Karaszi wrote: -----
> >
> > Just restore your latest backup of the msdb database. Msdb is just
like any other database when it
> comes to
> > handling a suspect database. General recommendations for handling a
suspect database:
> >
> > http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
> >
> > --
> > Tibor Karaszi, SQL Server MVP
> > http://www.karaszi.com/sqlserver/default.asp
> >
> >
> > "Philip" <zeta_01@hotmail.com> wrote in message
> news:A51A7CEF-958B-4911-B647-810C27A2DCE4@microsoft.com...
> > > Does anyone know how I can recover the MSDB once it is not
subspect?
> > >> The reason is the server was down during the backup job running
in night and I have already copy the
> > database file to the orginial location but only the MSDB was
subspected....
> > >>
>
>



Relevant Pages

  • Re: Host Operating System Disaster
    ... The system MSDB database was what I was sweating ... One thing to try is to reinstall SQL Server to the same ... location they were at originally before the drives went out. ... explicitly detach the database first using sp_detach_db. ...
    (microsoft.public.sqlserver.setup)
  • Re: Is msdb transactional???
    ... It is true that backup history for all backups performed on an SQL Server is in the msdb database. ...
    (microsoft.public.sqlserver.server)
  • Re: Coping everything to New Server
    ... Are these brought in with the master or msdb database? ... Sames thing with the Backup devices under ... > original sql server. ...
    (microsoft.public.sqlserver.setup)
  • Re: Cant Install SP4 for SQL 2000 / Win2k3
    ... This explains why a reinstall did not fix the errors. ... ran 'sp_resetstatus msdb' from query analyzer, ... > The LSN %S_LSN passed to log scan in database '%.*ls' is invalid. ... > To resolve this problem, obtain the latest service pack for Microsoft SQL ...
    (microsoft.public.sqlserver.setup)
  • Re: Replacing Default Instance
    ... This is under the assumption only your MSDB has got issues. ... database can be preserved. ... If you have problems in detach/attach, try with backup and restore strategy. ... > tables do not have several columns required by the SQL Agent. ...
    (microsoft.public.sqlserver.server)