dbo.TSB_TUTSBSpecificGroupBehavior
SQL_TRIGGER parent TSBSpecificGroupBehavior
Created 2025-06-27T18:01:21.293 · modified 2026-04-14T23:23:08.830 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| No parameters. | ||
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| deleted | OBJECT_OR_COLUMN | ||
| inserted | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| QBM_YParameterList | TYPE | ||
| QBM_YSingleGUID | TYPE | ||
| TSBSpecificGroupBehavior | OBJECT_OR_COLUMN | ||
| UNSAccountBHasUNSGroupB | OBJECT_OR_COLUMN | ||
| UNSAccountBHasUNSGroupB1 | OBJECT_OR_COLUMN | ||
| UNSAccountBHasUNSGroupB2 | OBJECT_OR_COLUMN | ||
| UNSAccountBHasUNSGroupB3 | OBJECT_OR_COLUMN | ||
| UNSAccountBInUNSGroupB | OBJECT_OR_COLUMN | ||
| UNSAccountBInUNSGroupB1 | OBJECT_OR_COLUMN | ||
| UNSAccountBInUNSGroupB2 | OBJECT_OR_COLUMN | ||
| UNSAccountBInUNSGroupB3 | OBJECT_OR_COLUMN | ||
| UNSGroupB | OBJECT_OR_COLUMN | ||
| UNSGroupB1 | OBJECT_OR_COLUMN | ||
| UNSGroupB2 | OBJECT_OR_COLUMN | ||
| UNSGroupB3 | OBJECT_OR_COLUMN | ||
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN |
Source excerpt
First extracted SQL definition lines from the exported source. Use the full source page for complete context.
1create trigger TSB_TUTSBSpecificGroupBehavior on TSBSpecificGroupBehavior for update not for Replication as begin declare @GenProcID varchar(38 2) = dbo.QBM_FGISessionContext('') declare @ReallyChanged QBM_YParameterList BEGIN TRY if exists (select top 1 1 from inserted) goto start if exists (select 3 top 1 1 from deleted) goto start return start: if not (update( PFDInheritOverwrite ) or update( PTDInheritOverwrite ) or update( PSIInheritOverwrite ) 4 or update( PMDInheritOverwrite ) or update( ADAInheritOverwrite ) ) begin goto EndLabel end insert into @ReallyChanged(Parameter1) select ovr.ObjectKeyGroup 5 from TSBSpecificGroupBehavior ovr join deleted i on ovr.UID_TSBSpecificGroupBehavior = i.UID_TSBSpecificGroupBehavior where isnull(ovr.PFDInheritOverwrite 6,0) <> isnull(i.PFDInheritOverwrite, 0) or isnull(ovr.PTDInheritOverwrite,0) <> isnull(i.PTDInheritOverwrite, 0) or isnull(ovr.PSIInheritOverwrite,0) <> 7 isnull(i.PSIInheritOverwrite, 0) or isnull(ovr.PMDInheritOverwrite,0) <> isnull(i.PMDInheritOverwrite, 0) or isnull(ovr.ADAInheritOverwrite,0) <> isnull 8(i.ADAInheritOverwrite, 0) if @@ROWCOUNT = 0 begin goto EndLabel end declare @GUIDUnsGroupB00 QBM_YSingleGUID insert into @GUIDUnsGroupB00(UID_SingleGuid 9) select g.UID_UNSGroupB from UNSGroupB g join @ReallyChanged ch on g.XObjectKey = ch.Parameter1 if @@ROWCOUNT > 0 begin declare @DBQueueElements_00 QBM_YDBQueueRaw 10 insert into @DBQueueElements_00 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB 11 uig join @GUIDUnsGroupB00 gg on uig.UID_UNSGroupB = gg.UID_SingleGuid union select uig.UID_UNSAccountB as uid from UNSAccountBHasUNSGroupB uig join @GUIDUnsGroupB00 12 gg on uig.UID_UNSGroupB = gg.UID_SingleGuid ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB', @DBQueueElements_00 end declare @GUIDUnsGroupB01 13 QBM_YSingleGUID insert into @GUIDUnsGroupB01(UID_SingleGuid) select g.UID_UNSGroupB1 from UNSGroupB1 g join @ReallyChanged ch on g.XObjectKey = ch.Parameter1 14 if @@ROWCOUNT > 0 begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, 15 @GenProcID from ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB1 uig join @GUIDUnsGroupB01 gg on uig.UID_UNSGroupB1 = gg.UID_SingleGuid 16 union select uig.UID_UNSAccountB as uid from UNSAccountBHasUNSGroupB1 uig join @GUIDUnsGroupB01 gg on uig.UID_UNSGroupB1 = gg.UID_SingleGuid ) as x exec 17 QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB1', @DBQueueElements_01 end declare @GUIDUnsGroupB02 QBM_YSingleGUID insert into @GUIDUnsGroupB02 18(UID_SingleGuid) select g.UID_UNSGroupB2 from UNSGroupB2 g join @ReallyChanged ch on g.XObjectKey = ch.Parameter1 if @@ROWCOUNT > 0 begin declare @DBQueueElements_02 19 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uig.UID_UNSAccountB as uid 20 from UNSAccountBInUNSGroupB2 uig join @GUIDUnsGroupB02 gg on uig.UID_UNSGroupB2 = gg.UID_SingleGuid union select uig.UID_UNSAccountB as uid from UNSAccountBHasUNSGroupB2 21 uig join @GUIDUnsGroupB02 gg on uig.UID_UNSGroupB2 = gg.UID_SingleGuid ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB2', @DBQueueElements_02 22 end declare @GUIDUnsGroupB03 QBM_YSingleGUID insert into @GUIDUnsGroupB03(UID_SingleGuid) select g.UID_UNSGroupB3 from UNSGroupB3 g join @ReallyChanged 23 ch on g.XObjectKey = ch.Parameter1 if @@ROWCOUNT > 0 begin declare @DBQueueElements_03 QBM_YDBQueueRaw insert into @DBQueueElements_03 (object, subobject 24, genprocid) select x.uid, null, @GenProcID from ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB3 uig join @GUIDUnsGroupB03 gg on uig.UID_UNSGroupB3 25 = gg.UID_SingleGuid union select uig.UID_UNSAccountB as uid from UNSAccountBHasUNSGroupB3 uig join @GUIDUnsGroupB03 gg on uig.UID_UNSGroupB3 = gg.UID_SingleGuid 26 ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB3', @DBQueueElements_03 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR 27 ('', 18, 1) WITH NOWAIT END CATCH endLabel: return end 28
Module relation graph
Loading module relation graph…
Source-derived context
Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.
provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:23:08.830
inserts DBQueue tasks uses session context values has TRY/CATCH error handling
Summary: calls QBM_PDBQueueInsert_Bulk, QBM_PSessionErrorAdd; writes INSERT into, UPDATE not; reads/joins inserted, deleted, TSBSpecificGroupBehavior, UNSGroupB, UNSAccountBInUNSGroupB…
Declared parameters
No declared parameters in sys.parameters for this object, or metadata was not available.
DML targets
INSERT into UPDATE notCalled routines
Read/join references
SQL dependency metadata
- deleted
- inserted
- QBM_PDBQueueInsert_Bulk
- QBM_PSessionErrorAdd
- QBM_YDBQueueRaw
- QBM_YParameterList
- QBM_YSingleGUID
- TSBSpecificGroupBehavior
- UNSAccountBHasUNSGroupB
- UNSAccountBHasUNSGroupB1
- UNSAccountBHasUNSGroupB2
- UNSAccountBHasUNSGroupB3
- UNSAccountBInUNSGroupB
- UNSAccountBInUNSGroupB1
- UNSAccountBInUNSGroupB2
- UNSAccountBInUNSGroupB3
- UNSGroupB
- UNSGroupB1
- UNSGroupB2
- UNSGroupB3
- dbo.QBM_FGISessionContext
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
TSB-K-UNSAccountBInUNSGroupB TSB-K-UNSAccountBInUNSGroupB1 TSB-K-UNSAccountBInUNSGroupB2 TSB-K-UNSAccountBInUNSGroupB3Temp tables / referenced variables
Temp: None extracted.
Variables: @GenProcID @ReallyChanged @ROWCOUNT @GUIDUnsGroupB00 @DBQueueElements_00 @GUIDUnsGroupB01 @DBQueueElements_01 @GUIDUnsGroupB02 @DBQueueElements_02 @GUIDUnsGroupB03 @DBQueueElements_03
Referenced by / reverse dependencies
Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.
No reverse dependencies extracted.