Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

AdventureWorks Attach problem Expand / Collapse
Author
Message
Posted Sunday, March 24, 2013 6:03 PM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: 2 days ago @ 4:09 AM
Points: 761, Visits: 1,083
Hi,

I'm trying to attach the data file of Adventureworks. I have download the file from http://msftdbprodsamples.codeplex.com/releases/view/55330


When I try to attach the file (I remove the log file because I don't have one) I receive the following error:

The header for file 'C:\AdventureWorksDW2012_Data.mdf' is not a valid database file header. The FILE SIZE property is incorrect.


My SQL Server version is SQL Server 2012 Developer edition with sp1

Can someone help?
Post #1434712
Posted Monday, March 25, 2013 1:30 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 11:42 PM
Points: 1,310, Visits: 1,786
Seemed to work fine for me. Have you run the following command to attach?
CREATE DATABASE AdventureWorks2012 ON (FILENAME = 'D:\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf') FOR ATTACH_REBUILD_LOG;

Post #1434772
Posted Monday, March 25, 2013 5:10 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: 2 days ago @ 4:09 AM
Points: 761, Visits: 1,083
Thank you.

It's solved
Post #1434829
Posted Thursday, May 2, 2013 4:42 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 9:53 AM
Points: 2,462, Visits: 1,065
foxxo (3/25/2013)
Seemed to work fine for me. Have you run the following command to attach?
CREATE DATABASE AdventureWorks2012 ON (FILENAME = 'D:\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf') FOR ATTACH_REBUILD_LOG;



Thank you!

qh


SQL 2K acts like a spoilt child - you need to coax it round with lollipops.
Post #1448757
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse