欢迎各位兄弟 发布技术文章
这里的技术是共享的
安装好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。
-----------------------------------
©著作权归作者所有:来自51CTO博客作者Michael。S的原创作品,请联系作者获取转载授权,否则将追究法律责任
Freetds 连接SQL Server 错误:Unexpected EOF from the server
https://blog.51cto.com/schzh/1036873
来自 https://blog.51cto.com/schzh/1036873