Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Can an MDF file with error 5172 "File size property is incorrect" be manually repaired ?

$
0
0

I have an MDF file with corruption in the Header.

The error i am receiving with any attempt to attach the file is

 The header for file ....\MSSQL\DATA\xxxx_data.mdf' is not a valid database file header. The FILE SIZE property is incorrect.

I have tried a number of online repair tools to see see if they can properly identify the header info and all have found no usable header data.

I have a good backup of the database that shows the properly formatted header, but i want to know if it is possible to use a hex editor and make the necessary changes to the corrupted file from the data in the backup MDF file.

Thanks

Andrew



Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>