dbo.ADS_TCPLUADSContainer
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: ADSContainer
Typed Edges
- trigger on table ADSContainer Trigger parent table: ADSContainer
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
- references source dbo.QER_PITShopHelperFill source text reference
- references source dbo.QER_PITShopHelperFillAll source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PSessionErrorAdd
- dbo.QER_PITShopHelperFill
- dbo.QER_PITShopHelperFillAll
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger ADS_TCPLUADSContainer2 ON ADSContainer FOR3UPDATE NOT FOR Replication4AS5BEGIN6 BEGIN TRY7 IF EXISTS(8 SELECT TOP 1 19 FROM inserted)10 GOTO start11 IF EXISTS(12 SELECT TOP 1 113 FROM deleted)14 GOTO start15 RETURN start:16 DECLARE @GenProcID varchar(38)17 SELECT @GenProcID = dbo.QBM_FGISessionContext('')18 DECLARE @Parameter nvarchar(1000)19 IF20 UPDATE(uid_AERoleOwner)21 BEGIN22 SELECT @Parameter = '|' + 'CPL-PWODecisionRule-OC|' + 'CPL-PWODecisionRule-OH|'23 EXEC QER_PITShopHelperFillAll @parameter,24 @GenProcID25 END26 END TRY27 BEGIN CATCH28 EXEC QBM_PSessionErrorAdd DEFAULT29 RAISERROR('',30 18,31 1)32 WITH NOWAIT33 END CATCH34 ende:35 RETURN36END
Open raw exported source
1 create trigger ADS_TCPLUADSContainer on ADSContainer for Update not for Replication as begin BEGIN TRY if exists (select top 1 1 from inserted2) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') declare @Parameter nvarchar(1000) if update(uid_AERoleOwner) begin select @Parameter = '|' + 'CPL-PWODecisionRule-OC|' + 'CPL-PWODecisionRule-OH|'4 exec QER_PITShopHelperFillAll @parameter, @GenProcID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END 5CATCH ende: return end 6