• Samuel Vella (4/27/2009)


    atoth (4/27/2009)


    I still find I need Cursors when Sending out batches of Email notifications from the Server.

    I would love to replace this with set based handling but I can imagine how...particulary step 2

    Adam

    you're performing a procedural not a set based operation and the "per-row" function calls means that you will need to use a cursor.

    Cursors do have their uses and this is one of them.

    Heh... in SQL Server 2005, even that can be done without a cursor. We're just gonna have to wait for it in Barry's series of articles.

    --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)