Difficulty: Easy
Correct Answer: ALTER TRIGGER
Explanation:
Introduction / Context:
Triggers are database objects that fire automatically in response to data changes. Administrators often need to temporarily disable or later re-enable triggers during bulk loads, maintenance, or troubleshooting. Knowing the correct command to toggle a trigger is a basic operational skill in SQL environments.
Given Data / Assumptions:
Concept / Approach:
The appropriate DDL (Data Definition Language) statement to change properties of an existing trigger is ALTER TRIGGER. Variants across vendors may include clauses like ENABLE or DISABLE, but the canonical operation is performed through the ALTER TRIGGER statement, not through user-modification commands.
Step-by-Step Solution:
Verification / Alternative check:
Most major RDBMSs (e.g., SQL Server, Oracle, PostgreSQL via ALTER TABLE ... DISABLE TRIGGER) use ALTER semantics to control trigger state or attachment; user commands do not affect triggers.
Why Other Options Are Wrong:
CHANGE USER / MODIFY USER: Manage accounts and permissions, not triggers.
All of the above: Incorrect because only ALTER TRIGGER is relevant.
None: Incorrect since ALTER TRIGGER exists for this purpose in mainstream systems.
Common Pitfalls:
Confusing trigger state control with user management; mixing vendor syntax without checking the object type.
Final Answer:
ALTER TRIGGER
Discussion & Comments