MS SQL Server 2019 with ODBC and nvarchar(max) lazarus / 16-Databases ---------------------------------------------------------------------- JohnnieK · 2022-10-20 09:38 Hi I am using Lazarus 2.2.2 on Windows 10 to connect to a MS SQL2019 server via ODBC. Everything works except that all fields in the db of type nvarchar(max) return empty strings when accessed via FieldByName('xxx').AsString. Anybody know how to get past this. Thanx ---------------------------------------------------------------------- Zvoni · 2022-10-20 09:56 Does ordinal Field-access work? What is your SELECT looking like? ---------------------------------------------------------------------- LacaK · 2022-10-26 16:36 There is already fix https://gitlab.com/freepascal.org/fpc/source/- /commit/3fa35f258b7b0d5049f6f7b5c55c029f72b2eb1a but it will be released in future FPC version.