dbo.LDP_TCPLULDPDomain
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
Relations
- Trigger parent table: LDPDomain
Typed Edges
- trigger on table LDPDomain Trigger parent table: LDPDomain
- 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 LDP_TCPLULDPDomain2 ON LDPDomain 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 @errno int19 DECLARE @errmsg nvarchar(255)20 DECLARE @Parameter nvarchar(1000)21 IF22 UPDATE(uid_AERoleOwner)23 BEGIN24 SELECT @Parameter = '|' + 'CPL-PWODecisionRule-OC|' + 'CPL-PWODecisionRule-OH|'25 EXEC QER_PITShopHelperFillAll @parameter,26 @GenProcID27 END28 END TRY29 BEGIN CATCH30 EXEC QBM_PSessionErrorAdd DEFAULT31 RAISERROR('',32 18,33 1)34 WITH NOWAIT35 END CATCH36 ende:37 RETURN38END
Open raw exported source
1 create trigger LDP_TCPLULDPDomain on LDPDomain 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 @errno int declare @errmsg nvarchar(255) declare @Parameter nvarchar(1000) if update(uid_AERoleOwner) begin select @Parameter = '|' + 'CPL-PWODecisionRule-OC|'4 + 'CPL-PWODecisionRule-OH|' exec QER_PITShopHelperFillAll @parameter, @GenProcID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR5 ('', 18, 1) WITH NOWAIT END CATCH ende: return end 6