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)
问题一:
所用数据库为“SQLServer2008”
站点在Web服务器上,而数据库在数据库服务器上,“Asp.Net”页面访问不到“数据库服务器上”数据库,提示了如上所示的错误,怎么回事???
应该怎样修正???
数据库配置如下:
1、管道配置
2、允许远程连接
3、数据库服务器上的防火墙已经关闭
问题二:还有Asp.net站点访问,还需要配置什么呢??? 外围配置器吗,用的数据库是SqlServer2008???
问题三:Web服务器上的“SQL Server Management Studio”客户端,远程联系数据库服务器是没有问题的。但是,Web网站访问就不行着,这是为什么呢???
数据库连接字符串:
<connectionStrings>
<add name="MyConnString" connectionString="server=192.168.168.3;database = Test;uid=sa;[color=#FF0000]pwd=123456@abcd;" />
</connectionStrings>
问题四:是因为密码中有一个“@”字符吗???
[/color]