在带有freetds 1.00.82-2和sqsh 2.1.7-4build1的Ubuntu 18.04上,尝试SELECT foo FROM bar
foo
是一个nvarchar列时,我得到以下内容:
dsp_desc_bind: Memory allocation failure for column #1
答案 0 :(得分:0)
我尝试将freetds降级到0.91.6,我曾在Ubuntu 17.10上工作,然后得到了更容易理解的错误消息
Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.
让我找到了解决方案:
修改/etc/freetds/freetds.conf
并添加一个
[YourDbHostname]
host = localhost
port = 1433
tds version = 8.0
现在有效:)