Limits to statement size in ISERIES

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • --CELKO--

    #1

    Limits to statement size in ISERIES

    We just got a "SQL Statement too long or complex" error on the
    ISERIES. James was able to get a compile after replacing some full
    table names with (much shorter) correlation names, etc.

    I have not see his query, but what are the statement size limits? I
    thought they would be so large that this should not happen in a
    practical situation.
  • Serge Rielau

    #2
    Re: Limits to statement size in ISERIES

    --CELKO-- wrote:
    We just got a "SQL Statement too long or complex" error on the
    ISERIES. James was able to get a compile after replacing some full
    table names with (much shorter) correlation names, etc.
    >
    I have not see his query, but what are the statement size limits? I
    thought they would be so large that this should not happen in a
    practical situation.

    2MB for the past couple of releases.



    --
    Serge Rielau
    DB2 Solutions Development
    IBM Toronto Lab

    Comment

    • Karl Hanson

      #3
      Re: Limits to statement size in ISERIES

      --CELKO-- wrote:
      We just got a "SQL Statement too long or complex" error on the
      ISERIES. James was able to get a compile after replacing some full
      table names with (much shorter) correlation names, etc.
      >
      I have not see his query, but what are the statement size limits? I
      thought they would be so large that this should not happen in a
      practical situation.
      In v5r4:
      Maximum length of an SQL statement (in bytes) 2 097 152
      (from:)


      Prior to that:
      Longest SQL statement 65535
      (from:)


      --
      Karl Hanson

      Comment

      Working...