I have a big table with 100 000 000 rows. It contains a tree with one root. The tree implemented as 2 fields:
id int
parent_id int
No additionals data about this tree.
I want to add new column to the table
hier hierarchyid
and fill it with hierarchy values.
I created a script but it works ~ 15 hours. It is not ok. It should be executed in <3 hours. How to do it? Thnx.