0

我有这个连接字符串

<add name="ApplicationServices" connectionString="Data Source=local;Initial Catalog=mycatalog;Integrated Security=True"
      providerName="System.Data.SqlClient"/>

问题是我认为的数据源local是错误的,因为我不断收到此错误

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)

正确的连接字符串应该是什么?

4

1 回答 1

1

利用

  • (当地的)
  • 本地主机
  • .

没错,只是一个 ./dot

如果您愿意,请在 local 周围添加括号

于 2012-05-21T13:16:16.487 回答