SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database Recovery Help


Database Recovery Help

Author
Message
angels4kali
angels4kali
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 23
Gonna repost this here...accidentally stuck it in the 7 & 2000 forums

Here is the situation

MS SQL Server 2005 Express

3/20/09 Database is created by restoring from a Full Backup from a different database
3/20/09 Differential backup is taken by a daily scheduled task
3/21/09 Database accidentally deleted by internal process

need to restore database

what i have:

Full backup (from a different database) used to create db on 3/20/09

A differential backup of deleted database taken on 3/20/09

Corrupted mdf recovered by file recovery tool. (i.e. Attach yields not a primary database file and sp_attach_single_file yields invalid header. PageAudit incorrect etc.)

ldf may or may not be corrupted

Is all hope lost, or do I have something to work with.
angels4kali
angels4kali
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 23
Additional details:

I have three databases in this condition and some are at least a weeks worth of differential, no full backups, except the one from which it was created (which is from another database)

Basically here is what happens:

1) An internal application restores a copy of the same database to a new database every time a new "instance" is required
2) The new "instance" of the database now functions independently, it gets its own full (weren't running for some reason) and diff backups
3) When an "instance" is no longer needed it is flagged, and then removed (dropped) by the same internal application which created it.

Unfortunately, these three databases were incorrectly flagged and removed.

File recovery got the mdf's and ldf's back, they are the correct sizes even. But when we attempt to attach them we get "not a primary database file" and and single file attach "invalid header... PageAduit...incorrect", etc.

We have only the full from the database from which these instances were created and diff backups since they were created.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)

Group: Administrators
Points: 145641 Visits: 19425
Have you tried restoring the original db (from the .bak) and then restoring a diff?

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
angels4kali
angels4kali
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 23
I get this message:

The volume on device 'C:\PathToFullBackup\FullbackFile.bak' is not part of a multiple family media set. BACKUP WITH FORMAT can used to form a new media set. RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3529)

The full back up is associated with the "master copy" that we create these individual instances from, not with the database I am attempting to restore.

I know between the full back up of the other database and the diffs of this database, all the data is there. Just no way to use it!
GilaMonster
GilaMonster
SSC Guru
SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)

Group: General Forum Members
Points: 222929 Visits: 46294
angels4kali (3/24/2009)
I get this message:

The volume on device 'C:\PathToFullBackup\FullbackFile.bak' is not part of a multiple family media set. BACKUP WITH FORMAT can used to form a new media set. RESTORE HEADERONLY is terminating abnormally. (Microsoft SQL Server, Error: 3529)


What was the restore command that you used there/

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Steve Jones
Steve Jones
SSC Guru
SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)

Group: Administrators
Points: 145641 Visits: 19425
That message is usually when you have striped the backup to multiple files.

Do you have the backup command, and the restore command?

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
angels4kali
angels4kali
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 23
MasterCopy
- Full back up of MasterCopy: MasterCopyFull.bak

InstanceA
- Differential backup of InstanceA: InstanceADiff.bak

Right clicking on restore database...
Restore from device and selecting the two above back ups
GilaMonster
GilaMonster
SSC Guru
SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)

Group: General Forum Members
Points: 222929 Visits: 46294
angels4kali (3/24/2009)
Restore from device and selecting the two above back ups


By doing that you're telling SQL that is is one backup striped across two files, which it is not.

Select restore, select just the full backup and make sure you find the option to leave the database in recovery (on the second tab of the restore backup screen)

Once that restore has completed, then go and restore again, this time selecting the diff backup. You can set the option to recover the DB and make it available on this won.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


angels4kali
angels4kali
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 23
Got one out of three back doing this, this one was created earlier this week

The other two think they had a backup on 3/15, although the backup file doesn't exist

For that matter, all my databases, including those that weren't dropped think they had a full backup taken on 3/15 and none of the full backup files exist

Any idea what would cause this?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)SSC Guru (222K reputation)

Group: General Forum Members
Points: 222929 Visits: 46294
angels4kali (3/24/2009)
For that matter, all my databases, including those that weren't dropped think they had a full backup taken on 3/15 and none of the full backup files exist

Any idea what would cause this?


A full backup that was taken (ad-hoc) and the backup file then deleted.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search