There is a difference in how the MS SQL Server driver handles VARCHAR(max) compared with jTDS.
The MS driver reports the column as a standard VARCHAR, jTDS however treats the column as a LOB.
Workaround is to set the "USELOBS" driver property for jTDS to "false".
Copy db_connection_types.conf from default to local and change this line:
jdbcUrlFormat = jdbc:jtds:sqlserver://<host>:<port>/<database>;useCursors=true
into:
jdbcUrlFormat = jdbc:jtds:sqlserver://<host>:<port>/<database>;useCursors=true;UseLOBs=false
... View more