When creating the view use Schema binding. Otherwise you can delete the table which is referenced by view which will cause error if query the viewcreate view vias select no, name from dbo.tblGoselect * from viGoalter table tbl drop column noGoselect * from vi -- You will get errorGodrop view v
Using Schema binding will prevent table from alteringcreate view vi with Schemabinding as select no,name from dbo.tblGoselect * from viGoalter table tbl drop column no - You cant alter until you drop view referencing itGoselect * from viGodrop view vi
MadhivananFailing to plan is Planning to fail