Sql connection-string for localhost server

前端 未结 13 2109
遇见更好的自我
遇见更好的自我 2020-12-09 01:28

I am newbie in this .NET and please don\'t mind in answering my simple question. I am trying to write a windows application, where in I am using a localhost SQLserver for da

13条回答
  •  Happy的楠姐
    2020-12-09 02:09

    Do You have Internal Connection or External Connection. If you did Internal Connection then try this:

    "Data Source=.\SQLEXPRESS;AttachDbFilename="Your PAth .mdf";Integrated Security=True;User Instance=True";
    

提交回复
热议问题