Machine-translated by Google. Questions are authored in English.
Top

Discussion

SQL Server program code that is executed instead of an SQL command that needs to be processed is called a(n):

  • A.INSTEAD OF trigger.
  • B.BEFORE trigger.
  • C.AFTER trigger.
  • D.BEGIN trigger.

Answer: A

Correct answer: INSTEAD OF trigger.

An INSTEAD OF trigger replaces the statement that fired it, so the code in the trigger runs and the original insert, update or delete does not. Its principal use is on views that are not otherwise updatable: the trigger receives the intended change and writes it to the underlying tables itself.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.