Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Backups
»
Database Recovery Help
Database Recovery Help
Rate Topic
Display Mode
Topic Options
Author
Message
angels4kali
angels4kali
Posted Tuesday, March 24, 2009 7:59 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 24, 2009 7:31 PM
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.
Post #682356
angels4kali
angels4kali
Posted Tuesday, March 24, 2009 8:01 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 24, 2009 7:31 PM
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.
Post #682358
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Tuesday, March 24, 2009 8:12 AM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 3:30 PM
Points: 31,436,
Visits: 13,751
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
Post #682376
angels4kali
angels4kali
Posted Tuesday, March 24, 2009 9:14 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 24, 2009 7:31 PM
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!
Post #682473
GilaMonster
GilaMonster
Posted Tuesday, March 24, 2009 9:23 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:30 AM
Points: 37,742,
Visits: 30,021
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 2008, MVP
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
Post #682483
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Tuesday, March 24, 2009 9:33 AM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 3:30 PM
Points: 31,436,
Visits: 13,751
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
Post #682494
angels4kali
angels4kali
Posted Tuesday, March 24, 2009 10:09 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 24, 2009 7:31 PM
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
Post #682537
GilaMonster
GilaMonster
Posted Tuesday, March 24, 2009 10:20 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:30 AM
Points: 37,742,
Visits: 30,021
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 2008, MVP
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
Post #682550
angels4kali
angels4kali
Posted Tuesday, March 24, 2009 12:36 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 24, 2009 7:31 PM
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?
Post #682700
GilaMonster
GilaMonster
Posted Tuesday, March 24, 2009 2:08 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:30 AM
Points: 37,742,
Visits: 30,021
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 2008, MVP
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
Post #682805
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.