Re: Restore mdf after system crash in sqls2k
From: Hari Prasad (HariPrasad_at_discussions.microsoft.com)
Date: 09/24/04
- Next message: Hari Prasad: "Re: move datafiles to SAN"
- Previous message: Farrukh Hassan: "Bulk Insert Not Ignoring faculty records"
- In reply to: Jacco Schalkwijk: "Re: Restore mdf after system crash in sqls2k"
- Next in thread: peteroff: "RE: Restore mdf after system crash in sqls2k"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 24 Sep 2004 07:37:04 -0700
Hi,
Best option will be restore using good full database backup and apply your
transaction log backup. This
will provide you the data integrity. Attaching MDF file only might cause you
a data integrity problem
since you have not detached the database.
Thanks
Hari
MCDBA
"Jacco Schalkwijk" wrote:
> Try sp_attach_single_file_db (complete syntax in Books Online).
>
> However, it is not _guaranteed_ to work. It is only guaranteed to work if
> you explicitly detach the database via EM or sp_detach_db. You might be
> lucky though.
>
> --
> Jacco Schalkwijk
> SQL Server MVP
>
>
> "peteroff" <peteroff@discussions.microsoft.com> wrote in message
> news:D9111F32-7436-488A-A4E6-7EB62CC00DA8@microsoft.com...
> > During a system crash I was able to manually copy my .mdf but not the log.
> > After restoring the system sql runs an older version of the file, which i
> > want to replace with the copied mdf. Sql manager denies attaching the file
> > because it doesn't mach the log-file.
> > Is there a way of resetting the database or any other way for me to
> > restore
> > the .mdf without dataloss?
>
>
>
- Next message: Hari Prasad: "Re: move datafiles to SAN"
- Previous message: Farrukh Hassan: "Bulk Insert Not Ignoring faculty records"
- In reply to: Jacco Schalkwijk: "Re: Restore mdf after system crash in sqls2k"
- Next in thread: peteroff: "RE: Restore mdf after system crash in sqls2k"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|