Read from the server failed when trying to connect to sql-azure from tsql

后端 未结 4 747
误落风尘
误落风尘 2020-12-06 03:14

I\'m trying to connect to SQL-Azure from Ubuntu 12.04.

I\'ve compiled freeTds-0.91 with openssl and libiconf

tsql -H XXXXXXXX.database.windows.net -U         


        
相关标签:
4条回答
  • 2020-12-06 03:37

    Do with TDS 8.0 version worked for me.

    Just put in /etc/freetds/freetds.conf to stay permanent

    0 讨论(0)
  • 2020-12-06 03:56
    in freetds.conf
    
    [servername] 
    host = ipAddress
    port = 1433
    tds version = 8.0
    
    for checking freetds connection
    ===============================
    
    $tsql -S servername -U username 
    password
    
    0 讨论(0)
  • 2020-12-06 03:58

    The error is caused by the use of the wrong version of TDS.

    To resolve just specify the TDS version before the tsql command:

    TDSVER=8.0 tsql -H XXXXXXXX.database.windows.net -U Username -D DatabaseName -p 1433 -P Password
    
    0 讨论(0)
  • 2020-12-06 04:00

    Is your IP address whitelisted by the database server? If not, you won't be able to connect.

    0 讨论(0)
提交回复
热议问题