2016-11-30 31 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

相关问题