ado.net数据库连接

王朝c#·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

数据库连接的问题

---------------------------------------

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

http://blog.csdn.net/superdont/archive/2007/01/31/1498556.aspx

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航