copy and paste database

  • when i try this query to attach a database,

    EXEC sp_attach_db @dbname = 'EnvNew',

         @filename1 = 'D:\K-Plus\EngineeringDB\Database\EnvNew.mdf',

         @filename2 = 'D:\K-Plus\EngineeringDB\Database\EnvNew.ldf'

     

    ERROR :

    Server: Msg 5172, Level 16, State 15, Line 1

    The header for file 'D:\K-Plus\EngineeringDB\Database\EnvNew.mdf' is not a valid database file header. The PageAudit property is incorrect.

     

     

     

    pls help me....

  • What version of SQL are the files from? If they are from 2000 and you are attaching to 7.0, you would get this message.

    MG

    "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
    Tony Hoare

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply