问题:安装2007后,链接的sql server 2000的数据库,却提示以下错误?
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 改为数据库服务器名或(local)即可。
新闻热点
疑难解答
图片精选