Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Deployment of SQL EXpress with VB.Net program troubles

Deployment of SQL EXpress with VB.Net program troubles

Scheduled Pinned Locked Moved ASP.NET
databasesysadminhelpcsharp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cory Kimble
    wrote on last edited by
    #1

    I am trying to deploy the ms sql express with my program and attach a mdf file automatically. I read about the attachdbfilename attribute in the connections string but I can't get it to work. Can any one give me some help? I have looked on Microsoft website and they don't give good examples. Also on Google, I am doing (I think) what I am suppose to but get errors. Example connections string: "Data Source=WALZLM1;Initial Catalog=;AttachDBFileName=scantrack.mdf;Integrated Security=True" I get this error: An attempt to attach an auto-named database for file scantrack.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share. Things you may want to know. The Sqlexpress is on a networked server. The mdf is local. What am I doing wrong?

    I can't think of anything cool and nerdy to say.

    N A 2 Replies Last reply
    0
    • C Cory Kimble

      I am trying to deploy the ms sql express with my program and attach a mdf file automatically. I read about the attachdbfilename attribute in the connections string but I can't get it to work. Can any one give me some help? I have looked on Microsoft website and they don't give good examples. Also on Google, I am doing (I think) what I am suppose to but get errors. Example connections string: "Data Source=WALZLM1;Initial Catalog=;AttachDBFileName=scantrack.mdf;Integrated Security=True" I get this error: An attempt to attach an auto-named database for file scantrack.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share. Things you may want to know. The Sqlexpress is on a networked server. The mdf is local. What am I doing wrong?

      I can't think of anything cool and nerdy to say.

      N Offline
      N Offline
      Niladri_Biswas
      wrote on last edited by
      #2

      A database with the same name exists Have you checked this? :)

      Niladri Biswas

      1 Reply Last reply
      0
      • C Cory Kimble

        I am trying to deploy the ms sql express with my program and attach a mdf file automatically. I read about the attachdbfilename attribute in the connections string but I can't get it to work. Can any one give me some help? I have looked on Microsoft website and they don't give good examples. Also on Google, I am doing (I think) what I am suppose to but get errors. Example connections string: "Data Source=WALZLM1;Initial Catalog=;AttachDBFileName=scantrack.mdf;Integrated Security=True" I get this error: An attempt to attach an auto-named database for file scantrack.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share. Things you may want to know. The Sqlexpress is on a networked server. The mdf is local. What am I doing wrong?

        I can't think of anything cool and nerdy to say.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Cory Kimble wrote:

        "Data Source=WALZLM1;Initial Catalog=;AttachDBFileName=scantrack.mdf;Integrated Security=True" I get this error: An attempt to attach an auto-named database for file scantrack.mdf failed. A database with the same name exists, or specified file can not be opened, or it is located on UNC share.

        Have a look[^]

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups