当前位置:首页 > 开发教程 > ADO.NET >

数据库连接

时间:2013-09-22 09:36 来源: 作者: 收藏

2345软件教程,为您打造全面的软件教程手册,无论是新奇小软件的操作还是专业软件的使用技巧,2345软件教程都会为您解疑释惑。

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

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


上一篇:存取文件
下一篇:实现事务处理

ADO.NET阅读排行

最新文章