According to MSDN, views composed of simple selects automatically allow you to use insert/update/delete statements on the table. Is there a way to prevent this – to tell Sql Server that the view is readonly, and you can’t use it to modify the table?
According to MSDN, views composed of simple selects automatically allow you to use insert/update/delete
Share
The best way would be to remove
UPDATE/DELETE/INSERTpermissions on the View.Apart from that you could create an
INSTEAD OFtrigger on the view that simply does nothing to have the updates silently fail or there are quite a few constructs that make views non updatable. So you can pick one that doesn’t change semantics or efficiency and then violate it.Edit: The below seems to fit the bill.