Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PageAudit and FILE SIZE Error After Server Crash

Status
Not open for further replies.

CTekGirl

MIS
Jul 23, 2003
76
US
I am attempting to assist an associate with a database that sufferred through a server crash. They relied on a provider to do backups and they were not. They were able to obtain a mdf and ldf file from the server but it is no longer recognized as a database file when they try to attach it. The database is about 150mb. I am pretty sure the header file is damaged. Are there any tools available to repair this without being attached to SQL Server? I looked at the file through an editor and in comparing it to functioning databases, the header does look different. I tried doing some manual editing to the file, I was able to eliminate the PageAudit Error but now I am getting:
Server: Msg 5172, Level 16, State 15, Line 1
The header for file 'd:\mssql\db\test4.mdf' is not a valid database file header. The FILE SIZE property is incorrect.

This is the error I was originally getting:

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

In generally I would like to help him out with a tool that rebuilds file headers, if available. It's for a group that helps kids in trouble, so any help would be appreciated. Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top