Ignore triggers with certain text in name

Is there a way to ignore triggers with certain text in the name? In my case it's ApexSQLAudit and these are the types of triggers:

CREATE TRIGGER [dbo].[dbo_Autopayment_ApexSQLAudit_Delete] ON [dbo].[Autopayment]
WITH EXECUTE AS CALLER
FOR DELETE
AS EXTERNAL NAME [ApexSQL.Audit.BeforeAfter.MOBILECRM.dbo.Autopayment.Delete].[ApexSQL.Audit.BeforeAfterClr.BeforeAfterTrigger].[Delete]
GO
CREATE TRIGGER [dbo].[dbo_Autopayment_ApexSQLAudit_Insert] ON [dbo].[Autopayment]
WITH EXECUTE AS CALLER
FOR INSERT
AS EXTERNAL NAME [ApexSQL.Audit.BeforeAfter.MOBILECRM.dbo.Autopayment.Insert].[ApexSQL.Audit.BeforeAfterClr.BeforeAfterTrigger].[Insert]
GO
CREATE TRIGGER [dbo].[dbo_Autopayment_ApexSQLAudit_Update] ON [dbo].[Autopayment]
WITH EXECUTE AS CALLER
FOR UPDATE
AS EXTERNAL NAME [ApexSQL.Audit.BeforeAfter.MOBILECRM.dbo.Autopayment.Update].[ApexSQL.Audit.BeforeAfterClr.BeforeAfterTrigger].[Update]
GO



Tagged:

Answers

Sign In or Register to comment.