Sample Database file AventureWorksDW2012_Data.mdf appears to be corrupt.

Dec 13, 2012 at 5:28 PM
Edited Dec 14, 2012 at 3:39 PM

After I downloaded the file I tried to run this SQL statement:

CREATE DATABASE AdventureWorksDW2012 ON (FILENAME = 'E:\MSSQL11.SQL02\MSSQL\DATA\AdventureWorksDW2012_Data.mdf') FOR ATTACH_REBUILD_LOG;

I get the following error:

Msg 5172, Level 16, State 15, Line 1 

The header for file 'E:\MSSQL11.SQL02\MSSQL\DATA\AdventureWorksDW2012_Data.mdf' is not a valid database file header. The FILE SIZE property is incorrect.

I am new to this site and I opened an issue for this problem. Was that an error on my part?

Regards,

Dan

 

Dec 17, 2012 at 5:48 PM

You may want to post your issue here. This is the dicussion board for the codeplex site.