2012-12-16 50 views
0

我已經配置我的系統連接到SQL Server 2008中,我運行在Windows Server 2008上運行,和我做了以下內容: -錯誤連接到SQL Server 2008使用TCP/IP

  1. 啓用TCP/IP在我的SQL Server上。

  2. 激活並啓用SQL Server的192.168.1.20。

  3. 爲防火牆和sqlserver.exe上的1433帖子添加兩條入站規則。

但是,當我試圖連接我得到了以下錯誤的數據庫: -

The TCP/IP connection to the host 192.168.1.20, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".

當我鍵入以下內容:

telnet 192.168.1.20 

它給了我

Connecting To 192.168.1.20...Could not open connection to the host, on port 23: 
Connect failed 

那麼可能是什麼問題?

回答

1

telnet命令是錯誤的,儘量

telnet 192.168.1.20 1433 

你沒有提到有關出站規則。您需要在機器上(在防火牆中)和SqlServer機器上添加入站+出站規則。

+0

telnet 192.168.1.20 1433也將「連接到192.168.1.20 ...無法打開連接到主機,在端口1433:連接失敗」 –

+0

好吧,但你也把出站規則嗎? – csg

+0

是的,我添加了兩個出站規則,並且我還禁用了防火牆。但仍然無法在192.168.1.20 1433上telnet ..最佳方式 –