.mdf is not a primary database file

Discussion in 'Databases' started by balu_dotnet, Jan 22, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi i am trying to attach my database (wtih .mdf & .ldf )in windows vista (SQL2005)
    i am getting this Error: .mdf is not a primary database file

    can any one help?
     
  2. JorgeR

    JorgeR DiscountASP.NET Staff

    You can tried to add the file using the command sp_attach_single_file_db. It is possible that the database may have been corrupted when it was downloaded. In either case, try to restore it from a bak file


    junior

    DiscountASP.NET

    www.DiscountASP.NET
     
  3. Thanks for Rply i tried with sp_attach_single_file_db, but it didn't work. may i i didn't good bkup. i will try again
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page