After enabling Parameterized Query, there’s a stricter control for column length from certain drivers. You may observe "truncated” errors when parameters exceed the max defined column length.
For example, suppose we have a table 'county' with the following DDL in the SQL Server:
create table country (country_name char(10));
select country_name from country where country_name = ‘itsareallylongcountryname’;

A prepared SQL statement is generated as below:
select country_name from country where country_name = ?;with parameters:itsareallylongcountryname
The SQL Server ODBC driver will raise the error message:

It is an expected behavior on the driver side as the parameter exceeds the max length. The behavior varies from different gateways and connection types.
The following table outlines the expected behavior for Diamond Gateways against JDBC/ODBC connections.

Since the behavior may be relevant to the driver, the following table outlines the driver version that are certified for this article:
