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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp_attach error

Status
Not open for further replies.
Jul 20, 2001
1,153
US
I'm moving and old database (non production) to a new server using this syntax:

sp_attach_db @dbname = 'THICSOLD', @filename1 ='E:\mssql7\data\ThicsSQL_Data.MDF',@filename2 = 'e:\mssql7\data\ThicsSQL_Log.LDF'

I get this error :

Server: Msg 5172, Level 16, State 15, Line 1
The header for file 'E:\mssql7\data\ThicsSQL_Data.MDF' is not a valid The PageAudit property is incorrect.
database file header Tyrone Lumley
augerinn@gte.net


 
Are you sure the mdf file is from the same version of sql server? Including the service packs applied?

If I remember correctly some of the sql 7 service packs changed the data file format.

 
Yeah, my mistake, sorry.

Different versions.

Thanks though.
Tyrone Lumley
augerinn@gte.net


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top