2011-04-20 185 views
1

我只有MS SQL Server 2005.我使用DotNet框架2.0。发生错误就像当连接到SQL Server 2005时,SQL Server不允许远程连接

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)

回答

0

转到表面区域配置并选择允许远程连接。选择tcp和命名管道。重新启动服务。

+0

dipti我做了这个把戏,但没有工作 – 2011-04-20 12:38:46

0

可能是防火墙问题尝试关闭它。另外,如果您已命名实例,则应在配置管理器中使用更改端口。