2
Consultation
To consult all the triggers of a database, use:
SELECT * FROM sys.triggers
Failed attempt
I tried to exclude all or some of these triggers contained in the result:
DELETE FROM sys.triggers or DELETE FROM sys.triggers WHERE nome LIKE 'doc%'
But accuses the error:
Ad hoc updates in system catalogues are not allowed.
Doubt
- I’d like to know, how do I delete all or some triggers?
To remove a
TRIGGERjust doDROP TRIGGER [nome]. But what exactly do you want to do? You want to delete whichtriggers?– João Martins
@Joãomartins wanted to delete all or some of them (filtering with
WHERE) in the query resultSELECT * FROM sys.triggers– rbz