Sql connection-string for localhost server

前端 未结 13 2028
遇见更好的自我
遇见更好的自我 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条回答
  • 2020-12-09 02:12

    You can also use Dot(.) for local key i.e;

    Data Source=.\SQLEXPRESS;Initial Catalog=master;Integrated Security=True
    

    If you have the default server instance i.e. MSSQLSERVER, then just use dot for Data Source.

    Data Source=.;Initial Catalog=master;Integrated Security=True
    
    0 讨论(0)
提交回复
热议问题