在asp.net mvc项目中使用localhost而不是。\ sqlexpress在连接字符串中

时间:2017-11-27 13:17:20

标签: asp.net sql-server connection-string

我安装了Sql Server Express,但我需要在连接字符串中使用localhost作为数据源。

现在是连接字符串:

<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS.../>

我想这样用:

<add name="DefaultConnection" connectionString="Data Source=localhost

有没有办法在连接字符串中使用localhost别名而不是“。\ sqlexpress”。我在团队项目中工作,其他人使用连接字符串(他们已经安装了sql server - not express)

0 个答案:

没有答案
相关问题