Consider the following scenario:
In this scenario, the data returned for the CHAR or VARCHAR output parameters may be incorrect. The actual data returned is not deterministic because it can be random character data.
When this problem occurs, IBM DB2 may return an error message that resembles the following:
Note The actual error message may vary, depending on the IBM DB2 version where the Stored Procedure is defined.
- You use the Microsoft BizTalk Adapter for DB2 to call DB2 Stored Procedures.
- The DB2 Stored Procedure includes one or more output parameters that are defined as CHAR or VARCHAR data types.
- One of the following updates is applied for Microsoft Host Integration Server 2009 or for Microsoft BizTalk Adapters for Host Systems 2.0:
In this scenario, the data returned for the CHAR or VARCHAR output parameters may be incorrect. The actual data returned is not deterministic because it can be random character data.
When this problem occurs, IBM DB2 may return an error message that resembles the following:
01004 The value of a string was truncated when assigned to another string data type with a shorter length.
Note The actual error message may vary, depending on the IBM DB2 version where the Stored Procedure is defined.