How to properly access a VARCHAR(MAX) parameter value of a FireDAC dataset when getting “data too large for variable” error?
问题 Our application updates and accesses data using SQL Server 2014. I have a table of which the last column ('Contents') is created as VARCHAR(MAX) . We are using Delphi XE8, and are using a FireDAC TFDQuery component to update this column. ..... FDquery.ParamByName('Contents').AsString:=Contents; FDquery.ExecSQL; When running this update, I get the following error: Exception raised with message [FireDAC][Phys][ODBC]-345. Data too large for variable [CONTENTS]. Max len = [8002], actual len =