意见箱
恒创运营部门将仔细参阅您的意见和建议,必要时将通过预留邮箱与您保持联络。感谢您的支持!
意见/建议
提交建议

ado.net数据库连接

来源:恒创科技 编辑:恒创科技编辑部
2022-08-15 14:38:08


数据库连接的问题


紧急求助asp.net2.0程序连接sqlserver2000数据库出现问题
服务器配置:


ado.net数据库连接

windowsxp
framework2.0
sqlserver2000



出现如下错误:


An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

检查后发现是webconfig的配置问题,将server=local,改成本地计算机名,问题解决。

上一篇: 租用美国服务器:潜在的风险与应对策略。 下一篇: tomcat