MS SQL Server – 58 – Introduction of Trigger MCQ

58 – Introduction of Trigger MCQ

1 / 25

1. What is a DML trigger in SQL Server?

2 / 25

2. Which SQL statement is used to create a DML trigger in SQL Server?

3 / 25

3. In SQL Server, what is the primary purpose of a DML trigger?

4 / 25

4. Which virtual tables are available inside a DML trigger in SQL Server to access old and new data?

5 / 25

5. What does the “deleted” virtual table contain in a DML trigger?

6 / 25

6. What does the “inserted” virtual table contain in a DML trigger?

7 / 25

7. Which SQL Server statement is used to modify the structure of an existing DML trigger?

8 / 25

8. What happens when you modify the structure of a DML trigger in SQL Server?

9 / 25

9. Which clause is used to specify the event that triggers a DML trigger in SQL Server?

10 / 25

10. In SQL Server, what is the firing order of multiple triggers on the same table for the same event?

11 / 25

11. Which SQL statement is used to disable a DML trigger in SQL Server temporarily?

12 / 25

12. In SQL Server, which type of trigger is fired before the triggering action?

13 / 25

13. What is the purpose of the “INSTEAD OF” trigger in SQL Server?

14 / 25

14. Which SQL Server statement is used to enable a previously disabled DML trigger?

15 / 25

15. What is the maximum number of triggers that can be defined for a single table in SQL Server?

16 / 25

16. In SQL Server, what is the difference between an “AFTER” trigger and a “BEFORE” trigger?

17 / 25

17. Which statement is true about modifying a DML trigger’s structure in SQL Server?

18 / 25

18. What is the purpose of using the “NOCOUNT” setting in a DML trigger in SQL Server?

19 / 25

19. What is the syntax for disabling a DML trigger named “MyTrigger” on a table in SQL Server?

20 / 25

20. In SQL Server, what happens if an “AFTER” trigger is defined as “INSTEAD OF”?

21 / 25

21. Which statement is true about modifying a DML trigger’s structure in SQL Server?

22 / 25

22. What is the primary purpose of using “INSTEAD OF” triggers in SQL Server?

23 / 25

23. What is the primary purpose of using “AFTER” triggers in SQL Server?

24 / 25

24. Which SQL Server statement is used to modify the firing conditions of a DML trigger?

25 / 25

25. In SQL Server, what happens when you modify the structure of an “AFTER” trigger to be “INSTEAD OF”?

Your score is

0%