You need to ensure that you can insert rows into the underlying tables by using the view

You have an application that uses a view to access data from multiple tables.

You need to ensure that you can insert rows into the underlying tables by using the view.
What should you do?

You have an application that uses a view to access data from multiple tables.

You need to ensure that you can insert rows into the underlying tables by using the view.
What should you do?

A.
Create an INSTEAD OF trigger on the view.

B.
Define the view by using the SCHEMABINDING option.

C.
Define the view by using the CHECK option.

D.
Materialize the view.

Explanation:

http://msdn.microsoft.com/en-us/library/ms180800.aspx
http://msdn.microsoft.com/en-us/library/ms187956.aspx



Leave a Reply 5

Your email address will not be published. Required fields are marked *


HR_OS_B

HR_OS_B

Wrong answer, correct is A.
You cannot insert a row if the view references more than one base table, only by usint INSTEAD OF trigger.

Jai

Jai

Answer is ‘A’. Instead of trigger

Mido

Mido

It is a simple 461 question. It is A
Because a view can not insert or update values in multiple tables it will give error if we do not use instead of update or instead of insert trigger

malakosa

malakosa

I agree – A is correct