I have Hierarchical Data table and I need to maintain a replica of it in other DB for the people with less access rights to use. Now this Hierarchical Data table is using Sql server heirarchyid and function to get the tree, sub tree. Any movement in tree cause the entire subtree below of that node to update Db in all those nodes row.
Now to maintain a sync I can create trigger on update to update the replica table but it will fire n updates if the tree with size n gets moved.
Is there any way I can do this is one trigger for moving node and auto update the children?