What I really wanted to ask, though, is whether there's a more efficient method for calculating the level of nodes within a nested set. The following query is taking way more longer than I'd expect:
UPDATE #Tree\n SET lvl = (SELECT COUNT(*) \n FROM #Tree tbl \n WHERE (tab.lft BETWEEN tbl.lft AND tbl.rgt))\n FROM #Tree tab