LoslegenKostenlos loslegen

Modifying a trigger's definition

A member of the Sales team has noticed that one of the triggers attached to the Discounts table is showing a message with the word "allowed" missing.

Diese Übung ist Teil des Kurses

Building and Optimizing Triggers in SQL Server

Kurs anzeigen

Anleitung zur Übung

  • Modify the trigger definition and fix the typo without dropping and recreating the trigger.
  • Add the missing word to the PRINT statement.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

-- Fix the typo in the trigger message
___ TRIGGER PreventDiscountsDelete
ON ___
INSTEAD OF DELETE
AS
	PRINT 'You are not ___ to remove data from the Discounts table.';
Code bearbeiten und ausführen