FreeTDS and nvarchar(max) data

给你一囗甜甜゛ 提交于 2020-01-03 03:58:06

问题


I use a php application for managing a Microsoft SQL Server Database. The application is installed to unix and uses FreeTDS. While I do not have any problem to read / write data for nvarchar(n), I cannot handle correctly nvarchar(max) data for UTF-8.

Configuration file for freetds:

    host = x
    port = 1433
    tds version = 7.0
    client charset = UTF-8

Is there any other option for freetds in order to handle correclty nvarchar(max) data?

Thanks!


回答1:


You need TDS 7.2, which adds support for SQL Server 2005 and MAX types, see Choosing a TDS protocol version:

TDS: 7.2 Includes support for varchar(max), varbinary(max), xml datatypes and MARS[a].



来源:https://stackoverflow.com/questions/7879191/freetds-and-nvarcharmax-data

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