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)因为前台也掉用了数据。是能够连接的。前台代码和数据库在一台服务器上
但后台在另一台服务器上,所以我的判断是远程链接有问题。SQL服务器设置。 安装的是  【具有更多功能的Express】
Sql Server Management Studio-右击服务器名-属性-连接,选中“允许远程连接到此服务器”。
已经设置了允许“SQL Server 配置管理器”-TCP/IP连接 都启用了。防火墙也设置了1433和sql的例外(关闭防火墙同样连不上,应该不是防火墙问题)
[外围应用配置器]-->将RemoteDacEnable置为True. 也设置了PALL->TCP端口也设置了1433
TCP/IP的默认端口也是1433
这都是谷歌和百度搜的解决办法,都没用。