Hierarchies in sql server

  • I read the good article of Agha Usman on "Storing/Retrieving Hierarchies In SQL Server Database" but it left me with one question :

    1) What if want to move a node (and all its subnode) to another position ?

    Any idea?

    One other question :

    i have to store data about an address book whit contact and group , where a contact may belong to only one group and groups can be nested ; which strategies can i use different from the modified preorder tree traversal ?

    thanks

  • The answer to your first question is on page 3 of the article linked in the article your efer to.

    --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 2 posts - 1 through 1 (of 1 total)

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