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

◇◆丶佛笑我妖孽 提交于 2019-11-27 22:31:11

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
in freetds.conf

[servername] 
host = ipAddress
port = 1433
tds version = 8.0

for checking freetds connection
===============================

$tsql -S servername -U username 
password

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

Israel Trindade

Do with TDS 8.0 version worked for me.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!