Hi,
I need help,
I currently have a table in SQL that consists of an id and parentID to build a heirarchy, If a user has access to one of the items in the table then i want them to also gain access to its children (could be many levels of children).
Therefore i am supplying the user id and matching them to all items they have access to, however, the problem arises when attempting to identify its children.
I simply want to return all items that the user has direct access to and also the ones it inherits because it is a child.
For example,
Item 1 -- user has access to this item
->Item 1a
->Item 1b
->Item 1b(i)
I want the SP to return all four items even though they only have access to 'Item 1'.
Hope someone can help,
Cheers,
Kenny.
I need help,
I currently have a table in SQL that consists of an id and parentID to build a heirarchy, If a user has access to one of the items in the table then i want them to also gain access to its children (could be many levels of children).
Therefore i am supplying the user id and matching them to all items they have access to, however, the problem arises when attempting to identify its children.
I simply want to return all items that the user has direct access to and also the ones it inherits because it is a child.
For example,
Item 1 -- user has access to this item
->Item 1a
->Item 1b
->Item 1b(i)
I want the SP to return all four items even though they only have access to 'Item 1'.
Hope someone can help,
Cheers,
Kenny.