ado.net數(shù)據(jù)庫(kù)連接

字號(hào):


    緊急求助asp.net2.0程序連接sqlserver2000數(shù)據(jù)庫(kù)出現(xiàn)問(wèn)題
    服務(wù)器配置:
    windowsxp
    framework2.0
    sqlserver2000
    出現(xiàn)如下錯(cuò)誤:
    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的配置問(wèn)題,將server=local,改成本地計(jì)算機(jī)名,問(wèn)題解決。