ado.net数据库连接

来源:网络时间:2023-12-25 00:12:20

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

本文内容为用户投稿,该文观点仅代表作者本人,不代表本站立场,本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请将相关资料发送至[email protected]进行反馈与投诉,一经查实,立即处理!