SQL Server不允许远程连接

来源:百度知道 编辑:UC知道 时间:2024/05/28 16:58:20
Server Error in '/' 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

我用的是sql2000数据库,网上找了半天都是说2005的,网站应该没问题,一直没动,怀疑是有人乱设数据库来,请高手给我解决一下?
连接字符串在网站的里,是对的,那个我用我备份的覆盖了

加我的qq:342678713

EXEC sp_configure
看看show advanced options是不是1,不是1就
EXEC sp_configure 'show advanced options', '1' RECONFIGURE
接着执行EXEC sp_configure
看remote access是不是1
都是指的run_value
如果不是1就
EXEC sp_configure 'remote access', '1' RECONFIGURE
这个问题我碰到过,这个是你要远程访问的那个服务器上运行的

是不是你网站中的连接字符串有问题啊?2000与2005的连接字符串好像是不同的哦