Confusion w/Attach DataBase mdf errors

  • I recently had to upgrade my OS harddrive which contains all of my applications. After successfull install I had to also reinstall my MSSQL Developer 2000 application. I can now access the provided databases such as Northwind ect. . . I was also developing other databases and attempted to point to them thru (Righ-Click All Task-->Attach) context menu. I selected the Database that I wanted and verified the files. When I press I get the following error message:Error 5172: The header for file 'I:\MSSQLLogs\BookShopDB_Log.LDF' is not a valid database file header. The PageAudit property is incorrect.? I get lost from this point as to how to resolve this problem. Can someone provide some help? Thanks in advance . . . .

    Tom Johnson


    Kindest Regards,

    Thomas Johnson
    A+, MCP, MCSD .Net, C#
    Pray to the one who scraficed for you

  • Don't know if the log file is corrupt or not, but you could use sp_attach_single_file_db (look it up in bol) stored proc which will recreate the log file if the database only had one log file.

  • Take a look at RESTORE VERIFYONLY in Books Online.

     

    --------------------
    Colt 45 - the original point and click interface

  • Thanks Andrew, your suggestion seemed to fit the bill for what I wanted to do. This feature simply reconized that the original log file was corrupt and built a new version.


    Kindest Regards,

    Thomas Johnson
    A+, MCP, MCSD .Net, C#
    Pray to the one who scraficed for you

  • Thanks Phil, I found a useful purpose for your suggestion as well.


    Kindest Regards,

    Thomas Johnson
    A+, MCP, MCSD .Net, C#
    Pray to the one who scraficed for you

  • i have same problem. if you will find any solution, please forward to me.

  • i have same problem. if you will find any solution, please forward to me.

Viewing 7 posts - 1 through 6 (of 6 total)

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