Skip to content

Error after creating setup or instaallatin.

Aslam Mustak khan

Asked Jun 27, 2014, 10:20 PM EDT1 answer
Share
LinkedInX
an attempt to attach an auto-named database for file C:\ Program files\ Default Company Name \Cloth Invenotry \Garment.mdf failed . A database with the same name exists,or specified file cannot be opened or it is located on UNC share( In window based Application )
how to solve this issue

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    It seems this db Garment.mdf already exists, and your application is doing two things, 
    - connecting with Garment.mdf
    - Recreating Garment.mdf

    you've two options, 
    - create db with new name say Garment_new.mdf
    - don't recreate when you already have Garment.mdf (I prefer this)

    twitter @sumitjolly
    0