Sql server 2008 默认服务器名称的连接字符串

Sql server 2008 默认服务器名称的连接字符串,sql-server-2008,connection-string,Sql Server 2008,Connection String,我有这个连接字符串 <add name="ApplicationServices" connectionString="Data Source=local;Initial Catalog=mycatalog;Integrated Security=True" providerName="System.Data.SqlClient"/> 正确的连接字符串应该是什么?使用 (本地) 本地主机 对,就一个点 在local(本地)周围添加括号如果您喜欢,请在SQL Ser

我有这个连接字符串

<add name="ApplicationServices" connectionString="Data Source=local;Initial Catalog=mycatalog;Integrated Security=True"
      providerName="System.Data.SqlClient"/>
正确的连接字符串应该是什么?

使用

  • (本地)
  • 本地主机
对,就一个点


在local(本地)周围添加括号如果您喜欢,请在SQL Server Management studio中右键单击数据库,然后单击“查看连接属性”,并验证服务器名称和其他变量是否正确以及是否与连接字符串匹配
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)