• CirquedeSQLeil (3/14/2011)


    Jeff Moden (3/10/2011)


    CirquedeSQLeil (3/10/2011)


    Nice article Jeff. I have used a very similar method to this for very large hierarchies. Nice examples and well explained and illustrated.

    Thank you, Jason. Since you're working with very large hierarchies, have you or are you using the HierarchyID datatype at all?

    No, we don't use the HierarchyID datatype - not at all.

    Sorry for peppering you with question but is there a particular reason or is it just that there's no reason to convert legacy code?

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