安裝好freetds 0.82後,用tsql連接數據庫,會出現以下錯誤:
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Error 20017 (severity 9):
Unexpected EOF from the server
OS error 115, "Operation now in progress"
Error 20002 (severity 9):
Adaptive Server connection failed
There was a problem connecting to the server
程序連接也一樣,Unexpected EOF from the server。
查看網上的內容,可能與配置有關,於是修改配置文件freetds.conf,將對應的內容修改爲以下的值:
tds version = 8.0
再次連接,成功連接到SQL Server。