Go homepage(回首页) Upload pictures (上传图片) Write articles (发文字帖)
The author:(作者)delvpublished in(发表于) 2014/1/16 9:27:31 ado.net数据库连接_[Asp.Net教程]
出现如下错误:
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
赞