There's a safety trigger that blocks all SQL DDL events (ALTER/DROP/CREATE etc.) on a production database instance.
For deployments you'd do DISABLE TRIGGER
and then ENABLE TRIGGER
when done.
I'd like an Operator to be notified (EXEC sp_notify_operator ...
) when the safety trigger is DISABLED/ENABLED. They don't appear to be DDL events and I can't add an UPDATE/DELETE trigger on sys.triggers
either. Any ideas?