Nested Cursors

  • Thanks, Lynn.

    Scott, the article is long because it explains the wrong way to do things as well as the right way. The concept is wicked simple and creating running totals on a million rows takes scant seconds to run... like about 7 on my desktop machine and about half that on a good server with a good I/O system. The code is also very short.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing post 16 (of 16 total)

You must be logged in to reply to this topic. Login to reply