SQL 2005的Error26

    技术2022-05-11  54

    开始体验VS2005就遭遇挫折,创建一个很小的工程没使用ORMapping工具而直接使用ADO来连接。环境如下:windXPsp2+ASP.Net 2005+C#+SQL2K,这里连接的是SQL2K,但是装上SQLExpress2005,出现了下面的错误: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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    花了偶1天多时间试试了,改实例名等等,在网上找了半天讲的是连接SQL express 2005的,要知道偶连接的是SQL2k,所以开始的时候没想到在SQLExpress2005上的设置,后来修改其Remote Connection enable,就可以使用了。

    但是偶到目前为止还不知道这到底是什么原因。以后发现了,再补上,如果您知道,请告诉偶。


    最新回复(0)