We have several dependent views in our system. When we change underlying table, what's the best way to refresh these views?
For example: view1 references view2 which references table 1. Table 1 is changed.
I understand that sysdepends is not 100% reliable.
So instead of trying to figure out all the dependencies, if I know the dependency tree is 3 levels deep at most, can I just blindly go through all the views and issue sp_refreshview on multiple(3) passes?
In theory, the third time through all the views should be upto date, right?