IBM Support

IT23892: SQL SERVER INSERT WITH OUTPUT CLAUSE FAILS WITH TRUNCATION ERROR

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • An ESQL PASSTHRU function call that performs an ODBC insert
    statement against a database table on SQL Server fails with the
    error "String data, right truncated. Error in parameter N" if
    the following conditions are true:
    
    - the insert statement includes the 'OUTPUT' clause,
    - and the Nth column string data is longer than 999 characters.
    
    When the insert statement contains the OUTPUT clause, the
    DataDirect SQL Server wire protocol ODBC driver incorrectly
    describes all parameters as data type SQL_VARCHAR(999).
    
    
    
    Additional Symptom(s) Search Keyword(s):SQL Server, INSERT,
    Truncation error
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    All users of IBM Integration Bus V10 using the SQL Server ODBC
    driver on Linux and UNIX.
    
    
    Platforms affected:
    AIX, HP-UX Itanium platform, Linux on Power platform, Linux on
    x86-64 platform, Linux on zSeries platform, Solaris x86-64
    platform, Solaris SPARC platform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    An ESQL PASSTHRU function call that performs an ODBC insert
    statement against a database table on SQL Server fails with the
    error "String data, right truncated. Error in parameter N" if
    the following conditions are true:
    
    - the insert statement includes the 'OUTPUT' clause,
    - and the Nth column string data is longer than 999 characters.
    
    When the insert statement contains the OUTPUT clause, the
    DataDirect SQL Server wire protocol ODBC driver incorrectly
    describes all parameters as data type SQL_VARCHAR(999).
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT23892

  • Reported component name

    INTEGRATION BUS

  • Reported component ID

    5724J0540

  • Reported release

    A00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-01-30

  • Closed date

    2018-03-22

  • Last modified date

    2018-03-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    INTEGRATION BUS

  • Fixed component ID

    5724J0540

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSNQK6","label":"IBM Integration Bus"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 March 2018