Aan de slagGa gratis aan de slag

Disabling a trigger

Fresh Fruit Delivery needs to make some changes to a couple of rows in the Orders table.

Earlier they asked for a trigger to prevent unwanted changes to the Orders table, but now that trigger is stopping them from making the necessary modifications.

You are asked to help them with the situation by temporarily stopping that trigger from firing.

Deze oefening maakt deel uit van de cursus

Building and Optimizing Triggers in SQL Server

Cursus bekijken

Oefeninstructies

  • Pause the trigger execution to allow the company to make the changes.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

-- Pause the trigger execution
___ TRIGGER PreventOrdersUpdate
ON ___;
Code bewerken en uitvoeren