In question How to properly access a VARCHAR(MAX) parameter value of a FireDAC dataset when getting "data too large for variable" error? the error message says Max len = [8002] for a VARCHAR(MAX) field.
In my case however, using a MS SQL 2017 database and an ODBC driver version 13, the message says that the maximum length is 256 for a VARCHAR(1600) field:
Exception raised with message [FireDAC][Phys][ODBC]-345. Data too large for variable [MY_PARAM]. Max len = [256], actual len = [300] Hint: set the TFDParam.Size to a greater value.
Are there any configuration options which can cause this lower value for Max len?