Viewing 4 posts - 1 through 5 (of 5 total)
i got my answer on MSDN. it involes build a full nodepath value using the siblingorder as such:
WITH Yak(NodeID, ParentNodeID, NodePath) AS (SELECT ...
August 12, 2009 at 3:52 pm
The data from my first post was just sample data.
What you can see from the actual results is that all the level 1 records are coming back first...
August 12, 2009 at 3:22 pm
WITH DirectReports(parentNode, childNode, LEVEL ) AS
(
SELECT e.parentTocNodeGuid, e.tocNodeGuid, 0 AS LEVEL
FROM TocNodes AS e
WHERE ...
August 12, 2009 at 3:09 pm
I looked at the sample code in BOL and the query runs but is not returning the records in the sequence I want. It returns the first level 0...
August 12, 2009 at 2:29 pm
Viewing 4 posts - 1 through 5 (of 5 total)