PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Restore a database marked as Suspect
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Restore a database marked as Suspect

Réponse
 
LinkBack Outils de la discussion
Vieux 01/09/2008, 13h41   #1
Henrik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Restore a database marked as Suspect

I have a problem handed to me from a Client. The Client is using a SQL server
database for production statistics and follow up. Somehow (I don't know how,
nor does my client contact) the databse in question was marked as SUSPECT by
management studio and could not be accessed.

The database was taken offline and detached and a new temporary database was
created to be able to continue production.

The .ldf and .mdf files of the old database were saved at a secure location.

The client has now asked me to restore the old database. During the summer
they have also had problems with their backups and because of this the last
backup is pretty old.

When I try to attach the mdf file of the suspect database I get error 3456
Could not redo log record...

How can I restore the database using the .mdf and .ldf files I have. The
client can accept some data being lost in the process removing records that
are causing problems etc.

Any advice is appreciated

Regards

Henrik
  Réponse avec citation
Vieux 01/09/2008, 13h51   #2
Uri Dimant
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Restore a database marked as Suspect

Henrik
Have you tried to attach a single .MDF file?



"Henrik" <henrik_@community.nospam> wrote in message
news:E327D20D-09E6-4665-853B-C45B4A4DCA51@microsoft.com...
>I have a problem handed to me from a Client. The Client is using a SQL
>server
> database for production statistics and follow up. Somehow (I don't know
> how,
> nor does my client contact) the databse in question was marked as SUSPECT
> by
> management studio and could not be accessed.
>
> The database was taken offline and detached and a new temporary database
> was
> created to be able to continue production.
>
> The .ldf and .mdf files of the old database were saved at a secure
> location.
>
> The client has now asked me to restore the old database. During the summer
> they have also had problems with their backups and because of this the
> last
> backup is pretty old.
>
> When I try to attach the mdf file of the suspect database I get error 3456
> Could not redo log record...
>
> How can I restore the database using the .mdf and .ldf files I have. The
> client can accept some data being lost in the process removing records
> that
> are causing problems etc.
>
> Any advice is appreciated
>
> Regards
>
> Henrik



  Réponse avec citation
Vieux 01/09/2008, 18h13   #3
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Restore a database marked as Suspect

> When I try to attach the mdf file of the suspect database I get error 3456
> Could not redo log record...


That error suggests that the copy of the database files are not from a state where they are
transactionally consistent meaning that the log file is needed to get a clean database. I.e., you
can try sp_attach_single_file_db but chances are that SQL Server won't let you because it apparently
feel that something is not right with your ldf file.

Be prepared for a lot of hard work and also data loss.

Also be prepared that you might have to bite the bullet and restore from your most recent clean
backup. Actually restoring from your most clean backup is (most probably, judging from the error you
mentioned) your only *safe* option - the other possible options will most probably mean that you get
a transactionally inconsistent database where you either will have to live the inconsistencies or
manually clean up the data.

Consider straight ahead to hire somebody at SQL Server expert level to do this work for you.


Before we take this further: what version of SQL Server?

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Henrik" <henrik_@community.nospam> wrote in message
news:E327D20D-09E6-4665-853B-C45B4A4DCA51@microsoft.com...
>I have a problem handed to me from a Client. The Client is using a SQL server
> database for production statistics and follow up. Somehow (I don't know how,
> nor does my client contact) the databse in question was marked as SUSPECT by
> management studio and could not be accessed.
>
> The database was taken offline and detached and a new temporary database was
> created to be able to continue production.
>
> The .ldf and .mdf files of the old database were saved at a secure location.
>
> The client has now asked me to restore the old database. During the summer
> they have also had problems with their backups and because of this the last
> backup is pretty old.
>
> When I try to attach the mdf file of the suspect database I get error 3456
> Could not redo log record...
>
> How can I restore the database using the .mdf and .ldf files I have. The
> client can accept some data being lost in the process removing records that
> are causing problems etc.
>
> Any advice is appreciated
>
> Regards
>
> Henrik



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h02.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09451 seconds with 11 queries