You develop a Microsoft SQL Server 2012 database. You create a view from the Orders and OrderDetails
tables by using the following definition.
You need to ensure that users are able to modify data by using the view. What should you do?
A.
Create an AFTER trigger on the view.
B.
Modify the view to use the WITH VIEW_METADATA clause.
C.
Create an INSTEAD OF trigger on the view.
D.
Modify the view to an indexed view.
Explanation:
Verified answer as correct.
Reference: http://msdn.microsoft.com/en-us/library/ms187956.aspx
The primary advantage of INSTEAD OF triggers is that they enable views that would not be updatable to support updates. A view based on multiple base tables must use an INSTEAD OF trigger to support inserts, updates, and deletes that reference data in more than one table.
https://technet.microsoft.com/en-us/library/ms175521%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
thanks for the explanation. answer is C.