MDF is not primary database file error

  • Simply, i am trying to attach mdf file using SSMS. Why I am getting this error:

    error while attaching mdf file

    Regards,

    Damian

  • sscdamian wrote:

    Simply, i am trying to attach mdf file using SSMS. Why I am getting this error:

    error while attaching mdf file

    Regards,

    Damian

    -----------------------

    Maybe it's because you are trying to attach a file from your folder for corrupt files: E:\SQL Corrupt Files

    It's your first post so maybe there will be some recovery link or other advertising link as a follow up.

    Sue

  • Probably a damaged database file. It's one of the things that can go wrong when you detach a corrupt database.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I agree with Sue,

    You are selecting the file from SQL Corrupt File folder. what does it mean?

    SQL Database Recovery Expert 🙂

Viewing 4 posts - 1 through 3 (of 3 total)

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