问题
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