問題:安裝2007后,鏈接的sql server 2000的數(shù)據(jù)庫,卻提示以下錯誤?
Server Error in '/pe2007' Application.
--------------------------------------------------------------------------------
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)
原因:因為/Config/ConnectionStrings.config文件里的鏈接沒有填寫對
connectionString="connectionString="server=MOCCAI/ACAI;database=PowerEasy2007;uid=PowerEasy;pwd=PowerEasy*9988 "
server=MOCCAI/ACAI 改為數(shù)據(jù)庫服務器名或(local)即可。
新聞熱點
疑難解答
圖片精選