您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> 编程语言综合 >> 正文

ado.net数据库连接

作者:佚名    责任编辑:admin    更新时间:2022-06-22

   紧急求助asp.net2.0程序连接sqlserver2000数据库出现问题

  服务器配置:

  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,改成本地计算机名,问题解决。