得到的数据。当我尝试登录到我的网站,就会发生错误。我也尝试过运行SQL服务。
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
连接字符串
Data Source=.\SQLEXPRESS (metro);Initial Catalog=metrodb;Integrated Security=True
你可以请张贴你正在使用的**连接字符串**吗?该错误基本上说,该连接字符串有问题..... –
我已更新我的问题与连接字符串。 –