2016-11-30 38 views
0

機1:TinyTds - 自適應服務器不可用或不存在

>tsql -C 
Compile-time settings (established with the "configure" script) 
          Version: freetds v0.91.90 
      freetds.conf directory: /etc 
    MS db-lib source compatibility: no 
     Sybase binary compatibility: no 
         Thread safety: yes 
         iconv library: yes 
         TDS version: 4.2 
           iODBC: no 
          unixodbc: yes 
       SSPI "trusted" logins: no 
          Kerberos: no 

我已經安裝了freetds的,能充分的MSSQL的連接,

> TDSVER=4.2 tsql -S xx.xx.xxx.xxx -U xxxx -P xxxx -p 1433 
locale is "en_US.UTF-8" 
locale charset is "UTF-8" 
using default charset "UTF-8" 
1> 

所以,當我嘗試從TinyTds連接,它是拋出以下錯誤,

Adaptive server is unavailable or does not exist 

機2:

配置是一樣的,在機器1,並從該機器,它被連接到MSSQL與TinyTds

>tsql -C 
    Compile-time settings (established with the "configure" script) 
           Version: freetds v0.91.90 
       freetds.conf directory: /etc 
     MS db-lib source compatibility: no 
      Sybase binary compatibility: no 
          Thread safety: yes 
          iconv library: yes 
          TDS version: 4.2 
            iODBC: no 
           unixodbc: yes 
        SSPI "trusted" logins: no 
           Kerberos: no 

我已經安裝了freetds的和能夠進行連接到MSSQL,

> TDSVER=4.2 tsql -S xx.xx.xxx.xxx -U xxxx -P xxxx -p 1433 
locale is "en_US.UTF-8" 
locale charset is "UTF-8" 
using default charset "UTF-8" 
1> 

Able to connect to the server using TinyTds 

我不知道爲什麼發生這種情況還是在哪裏檢查,我不認爲這是一個防火牆的問題,因爲我能夠從終端連接,還我已經驗證了其憑證等,除了連接不成功之外,它們都是相同的。任何幫助非常感謝!

注:這種情況的出現,

我運行一個測試通過詹金斯,其中使用從「MACHINE1」,它是無法連接到SQLSERVER(運行Ruby進程具有配置freetds的)拋出Adaptive Server不可用或不存在錯誤。

當我修改奴隸「機2」,它是建立連接,儘管具有相同的freetds的配置MACHINE1

+0

每臺機器是否都有自己的SQL Server正在運行,或者都是連接到SQL Server其他機器的機器? –

+0

我能夠解決它改變:dataserver到:主機 –

回答

0

我的問題我啓用端口1433上的所有連接後,解決

enter image description here

相關問題