Column Size limitation when using CTEs

Posted on 2011-10-08
Last Modified: 2012-06-21

  I was using Kent's technique to concatenate row values (below link).

 I have two values, which i have to concatenate. But i get this error.
SQL0433N  Value "RULED OUT,UNSUBSTANTIATED" is too long.  SQLSTATE=22001

Open in new window

Is there a way to use this technique and yet work around this column size issue?
Please help.
Question by:pvsbandi
    LVL 37

    Expert Comment

    could you post the entire query?

    Accepted Solution


     Never mind.. i found the answer in the same article  :)
     I need to cast the concatenating string to a specific length, to avoid the error.
     Thank you much for your attention.

    Author Closing Comment

    found it in the article

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
    Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
    This video discusses moving either the default database or any database to a new volume.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now