All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Recover data from corrupt mdf and ldf files
PostPosted: August 18th, 2015, 6:43 
Offline

Joined: August 18th, 2015, 6:33
Posts: 1
Location: London
I am running MS SQL Server 2000 SP4 on MS Windows 2000 SP4. The server was crashed due to some hardware problems. I was able to recover .mdf and .ldf files but when I tried to attach them an error message appears that.

Error 5171: path......\.mdf is not a primary database file.

I have also tried to attach a single file using sp_attach_single_db Stored procedure but the output is

Server: Msg 5172, Level 16, State 15, Line 1
The header for file path......\.mdf is not a valid database file header. The PageAudit property is incorrect.

Then I created a new database with the same name
stop SQL Service
replace newer files with the corrupted one
Start SQL Service
Now the database is in the suspected mode
Changed it to emergency mode
executed dbcc checkdb ('dbname')
then dbcc dbrecover ('dbname')

but none of the attempt is fruitful. Would appreciate your help and quick response in solving the problem.

N.B. I have .mdf and .ldf files only.


Top
 Profile  
 
 Post subject: Re: Recover data from corrupt mdf and ldf files
PostPosted: August 18th, 2015, 7:59 
Offline
User avatar

Joined: February 9th, 2009, 16:13
Posts: 2513
Location: Ontario, Canada
Please define what you mean by "hardware problems" and outline your recovery process. Did you clone the drive(s) and work of the copy to recover the data?

_________________
Luke
Recovery Force Data Recovery


Top
 Profile  
 
 Post subject: Re: Recover data from corrupt mdf and ldf files
PostPosted: August 19th, 2015, 8:20 
Offline
User avatar

Joined: February 9th, 2009, 16:13
Posts: 2513
Location: Ontario, Canada
So, this is an official spam thread.

Create a new user account to ask a question and a few days later, create another user account and answer it with a link back to your site.

_________________
Luke
Recovery Force Data Recovery


Top
 Profile  
 
 Post subject: Recover data from corrupt mdf and ldf files
PostPosted: August 19th, 2015, 20:47 
Offline

Joined: February 8th, 2014, 8:08
Posts: 461
Location: Eastern Europe /recovering worldwide/
lcoughey wrote:
Create a new user account to ask a question and a few days later, create another user account and answer it with a link back to your site.

We need the OP to return a couple of days later and tell how well the software worked for him to make it classic.

_________________
• Remote RAID, NAS, SAN, VMware, DVR (CCTV), flash and tape recovery. Data recovery support.


Top
 Profile  
 
 Post subject: Re: Recover data from corrupt mdf and ldf files
PostPosted: August 19th, 2015, 20:55 
Offline

Joined: March 19th, 2015, 15:01
Posts: 1413
Location: isreal
Dmitri wrote:
We need the OP to return a couple of days later and tell how well the software worked for him to make it classic.


Attachments:
like.jpg
like.jpg [ 1.06 KiB | Viewed 5759 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group