Hi,
If you have 2 million rows then recursion solutions that were provided in this thread will be way two slow for you. You will have to decide and implement one of the hierarchy models with redundant hierarchy data.
- hierarchyid data type solution
- Hierarchy and Level fields solution
- Nested Sets solution
HTH, Regards, Dean Savović
No comments:
Post a Comment