SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 can't attach
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

b5white
Starting Member

18 Posts

Posted - 01/20/2011 :  12:18:36  Show Profile  Reply with Quote
> -- Recover a corrupt database
>
> The first step is to attach the database as suspect
> Create a database with an mdf of the same size as the old one
> stop the server.
> Copy the corrupt mdf over the newly created one.
> Restart the server - the database should be suspect.
> Author Nigel Rivett
> http://www.nigelrivett.net/SQLAdmin/RecoverCorruptDatabase.html

Fascinating. Perhaps these other backups are not
worthless just because they can't attach.
I'll try one of the more recent and see if we can recover
any of the recent data. We could perhaps add that to the
month old data that we do have a good backup for.

Brad.

tkizer
Almighty SQL Goddess

USA
35954 Posts

Posted - 01/20/2011 :  12:40:48  Show Profile  Visit tkizer's Homepage  Reply with Quote
Your post seems a bit out of place. Were you trying to reply to an existing thread instead?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

b5white
Starting Member

18 Posts

Posted - 01/20/2011 :  12:54:52  Show Profile  Reply with Quote
> Your post seems a bit out of place. Were you trying to reply to an existing thread instead?

No. This valuable tidbit was buried in another thread.
It is clearly related to my other recent post but seems
to me to need a separate thread.

I reposted it so that people with Can'tAttach problems might
have a chance of finding it.
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 01/20/2011 :  12:55:27  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
That is ONLY for the case where someone detached a suspect database and found it won't reattach.

You don't attach backups. You restore them (RESTORE DATABASE FROM DISK)

--
Gail Shaw
SQL Server MVP
Go to Top of Page

b5white
Starting Member

18 Posts

Posted - 01/20/2011 :  15:04:55  Show Profile  Reply with Quote
I may be using the term "backup" loosely. They have an MDF extension.

Brad.
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 01/20/2011 :  15:32:03  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
WT$%^%?

You DO NOT back a SQL database up by copying the mdf file. That's the absolute best way to have a damaged and unusable 'backup'. You back a database using BACKUP DATABASE. That way you have a consistent and usable backup to restore.

--
Gail Shaw
SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000