dbo.LDP_TDTSBSpecificGroupBehavior
Database TriggerSQL_TRIGGERSandbox DB
Interpretation
- Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
- DBQueue relation detected. Follow the task procedure and referenced-by list for async processing.
Relations
- Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 6
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: TSBSpecificGroupBehavior
Typed Edges
- queues DBQueue task LDP_ZAccountInLDAPGroup at line 6 Bulk DBQueue insert -> LDP-K-LDAPAccountInLDAPGroup / LDP_ZAccountInLDAPGroup at line 6
- trigger on table TSBSpecificGroupBehavior Trigger parent table: TSBSpecificGroupBehavior
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
References
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger LDP_TDTSBSpecificGroupBehavior2 ON TSBSpecificGroupBehavior FOR3DELETE NOT FOR Replication4AS5BEGIN6 DECLARE @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM deleted)11 GOTO start12 RETURN start:13 DECLARE @GUIDLDAPGroup QBM_YSingleGUID14 INSERT INTO @GUIDLDAPGroup(UID_SingleGuid)15 SELECT g.UID_LDAPGroup16 FROM LDAPGroup g17 JOIN deleted i18 ON g.XObjectKey = i.ObjectKeyGroup19 IF @@ROWCOUNT > 020 BEGIN21 DECLARE @DBQueueElements_LDAPAccountInLDAPGroup QBM_YDBQueueRaw22 INSERT INTO @DBQueueElements_LDAPAccountInLDAPGroup(object,23 subobject,24 genprocid)25 SELECT26 x.uid,27 NULL,28 @GenProcID29 FROM(30 SELECT uig.UID_LDAPAccount AS uid31 FROM LDAPAccountInLDAPGroup uig32 JOIN @GUIDLDAPGroup gg33 ON uig.UID_LDAPGroup = gg.UID_SingleGuid) AS x34 EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPAccountInLDAPGroup',35 @DBQueueElements_LDAPAccountInLDAPGroup36 END37 END TRY38 BEGIN CATCH39 EXEC QBM_PSessionErrorAdd DEFAULT40 RAISERROR('',41 18,42 1)43 WITH NOWAIT44 END CATCH45 EndLabel:46 RETURN47END
Open raw exported source
1create trigger LDP_TDTSBSpecificGroupBehavior on TSBSpecificGroupBehavior for delete not for Replication as begin declare @GenProcID varchar(382) = dbo.QBM_FGISessionContext('') BEGIN TRY if exists (select top 1 1 from deleted) goto start return start: declare @GUIDLDAPGroup QBM_YSingleGUID insert3 into @GUIDLDAPGroup(UID_SingleGuid) select g.UID_LDAPGroup from LDAPGroup g join deleted i on g.XObjectKey = i.ObjectKeyGroup if @@ROWCOUNT > 0 begin 4declare @DBQueueElements_LDAPAccountInLDAPGroup QBM_YDBQueueRaw insert into @DBQueueElements_LDAPAccountInLDAPGroup (object, subobject, genprocid) select5 x.uid, null, @GenProcID from ( select uig.UID_LDAPAccount as uid from LDAPAccountInLDAPGroup uig join @GUIDLDAPGroup gg on uig.UID_LDAPGroup = gg.UID_SingleGuid6 ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-LDAPAccountInLDAPGroup', @DBQueueElements_LDAPAccountInLDAPGroup end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd7 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH EndLabel: return end 8