dynamic SQL performance

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

    #1

    dynamic SQL performance

    Hi.
    I understand that static recursive stored procedure calls is not
    supported in v8 and instead the call to another SP needs to be made
    using dynamic SQL. Could anyone please let me know if there is any
    performance difference between both of the above methods.
    Thanks a lot.

  • Serge Rielau

    #2
    Re: dynamic SQL performance

    Jo wrote:
    Hi.
    I understand that static recursive stored procedure calls is not
    supported in v8 and instead the call to another SP needs to be made
    using dynamic SQL. Could anyone please let me know if there is any
    performance difference between both of the above methods.
    Thanks a lot.
    >
    As long as you use parameter markers for the CALL arguments it won't matter.

    Cheers
    Serge

    --
    Serge Rielau
    DB2 Solutions Development
    IBM Toronto Lab

    Comment

    • Knut Stolze

      #3
      Re: dynamic SQL performance

      Jo wrote:
      Hi.
      I understand that static recursive stored procedure calls is not
      supported in v8 and instead the call to another SP needs to be made
      using dynamic SQL. Could anyone please let me know if there is any
      performance difference between both of the above methods.
      You don't need to call /another/ procedure. An SP can call itself using
      dynamic SQL.

      --
      Knut Stolze
      DB2 z/OS Utilities Development
      IBM Germany

      Comment

      Working...