Let me know how it goes. I got a response from the Microsoft Learning Customer Support but they can't tell me what the issue is. Here is my original email to them
Comment: Trying to install the .MDF and .LDF files from the command line.
1> EXEC sp_attach_db @dbname = N'ContosoSQL',
2> @filename1 = N'C:\MSSQL7\Data\ContosoSQL_Data.MDF',
3> @filename2 = N'C:\MSSQL7\Data\ContosoSQL_Log.LDF'
4> GO
I get the error
Msg 5172 Level 16 State 15 Server JHZB000 Procedure Line1
[Microsoft][ODBC SQL Server Driver][SQL Server]The Header for file
'C:\MSSQL7\Data\ContosoSQL_Log.LDF' is not a valid database file header. The PageAudit property is incorrect.
Thanks for any help you can give me on this.
Paul