/****** Object:  Trigger [dbo].[CSAPP_PROTOCOL_GROUPS_REL_TYPES_CHANGED]    Script Date: 07.03.2019 13:32:29 ******/

IF NOT EXISTS (select * from sys.objects where type = 'TR' and name = 'CSAPP_PROTOCOL_OPTIONS_CHANGED')
EXEC dbo.sp_executesql @statement = N'
CREATE TRIGGER [dbo].[CSAPP_PROTOCOL_OPTIONS_CHANGED] ON dbo.[CSAPP_PROTOCOL_OPTIONS] FOR INSERT,UPDATE,DELETE
as
SET NOCOUNT on
BEGIN
EXEC dbo.APP_UPDATE ''Protocolinfo''
end'