dbo.TSB_TCPLUUNSRootB
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: UNSRootB
Typed Edges
- trigger on table UNSRootB Trigger parent table: UNSRootB
- 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 TSB_TCPLUUNSRootB2 ON UNSRootB FOR3UPDATE NOT FOR Replication4AS5BEGIN6 DECLARE @Parameter nvarchar(1000)7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM inserted)11 GOTO start12 IF EXISTS(13 SELECT TOP 1 114 FROM deleted)15 GOTO start16 RETURN start:17 DECLARE @GenProcID varchar(38)18 SELECT @GenProcID = dbo.QBM_FGISessionContext('')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 TSB_TCPLUUNSRootB on UNSRootB for Update not for Replication as begin declare @Parameter nvarchar(1000) BEGIN TRY if exists2 (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID3 = dbo.QBM_FGISessionContext('') if update(uid_AERoleOwner) begin select @Parameter = '|' + 'CPL-PWODecisionRule-OC|' + 'CPL-PWODecisionRule-OH|' exec4 QER_PITShopHelperFillAll @parameter, @GenProcID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH 5ende: return end 6