/****** Object:  Trigger [dbo].[CSAPP_CAMERA_VIEWS_CHANGED]    Script Date: 07.03.2019 13:32:28 ******/
IF NOT EXISTS (select * from sys.objects where type = 'TR' and name = 'CSAPP_CAMERA_VIEWS_CHANGED')
EXEC dbo.sp_executesql @statement = N'
CREATE TRIGGER [dbo].[CSAPP_CAMERA_VIEWS_CHANGED] ON [dbo].[CSAPP_CAMERA_VIEWS] FOR INSERT,UPDATE,DELETE
as
SET NOCOUNT on
BEGIN
EXEC dbo.APP_UPDATE ''CameraViews''
end'