緊急求助asp.net2.0程序連接sqlserver2000數(shù)據(jù)庫出現(xiàn)問題
服務器配置:
windowsxp
framework2.0
sqlserver2000
出現(xiàn)如下錯誤:
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)
檢查后發(fā)現(xiàn)是webconfig的配置問題,將server=local,改成本地計算機名,問題解決。
更多信息請查看IT技術(shù)專欄