2011-04-20 125 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

可能是防火牆問題嘗試關閉它。另外,如果您已命名實例,則應在配置管理器中使用更改端口。