I think we have another post from you on this and I see a query posted there which will help you. MS SQL use CTE for generating the path and there are few limitations but you should get most of your expectations working.
Probably we should continue discuss in that thread so that we have history.
Probably we should continue discuss in that thread so that we have history.