dbo.TSB_TITSBSpecificGroupBehavior
SQL_TRIGGER parent TSBSpecificGroupBehavior
Created 2025-06-27T18:01:21.283 · 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 |
|---|---|---|---|
| inserted | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| QBM_YSingleGUID | TYPE | ||
| 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.
1 create trigger TSB_TITSBSpecificGroupBehavior on TSBSpecificGroupBehavior for insert not for Replication as begin declare @GenProcID varchar 2(38) = dbo.QBM_FGISessionContext('') BEGIN TRY if exists (select top 1 1 from inserted) goto start return start: declare @GUIDUnsGroupB00 QBM_YSingleGUID 3 insert into @GUIDUnsGroupB00(UID_SingleGuid) select g.UID_UNSGroupB from UNSGroupB g join inserted i on g.XObjectKey = i.ObjectKeyGroup if @@ROWCOUNT 4> 0 begin declare @DBQueueElements_00 QBM_YDBQueueRaw insert into @DBQueueElements_00 (object, subobject, genprocid) select x.uid, null, @GenProcID from 5 ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB uig join @GUIDUnsGroupB00 gg on uig.UID_UNSGroupB = gg.UID_SingleGuid union select uig.UID_UNSAccountB 6 as uid from UNSAccountBHasUNSGroupB uig join @GUIDUnsGroupB00 gg on uig.UID_UNSGroupB = gg.UID_SingleGuid ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB' 7, @DBQueueElements_00 end declare @GUIDUnsGroupB01 QBM_YSingleGUID insert into @GUIDUnsGroupB01(UID_SingleGuid) select g.UID_UNSGroupB1 from UNSGroupB1 8 g join inserted i on g.XObjectKey = i.ObjectKeyGroup if @@ROWCOUNT > 0 begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 9 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB1 uig join @GUIDUnsGroupB01 10 gg on uig.UID_UNSGroupB1 = gg.UID_SingleGuid union select uig.UID_UNSAccountB as uid from UNSAccountBHasUNSGroupB1 uig join @GUIDUnsGroupB01 gg on uig.UID_UNSGroupB1 11 = gg.UID_SingleGuid ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB1', @DBQueueElements_01 end declare @GUIDUnsGroupB02 QBM_YSingleGUID 12 insert into @GUIDUnsGroupB02(UID_SingleGuid) select g.UID_UNSGroupB2 from UNSGroupB2 g join inserted i on g.XObjectKey = i.ObjectKeyGroup if @@ROWCOUNT 13 > 0 begin declare @DBQueueElements_02 QBM_YDBQueueRaw insert into @DBQueueElements_02 (object, subobject, genprocid) select x.uid, null, @GenProcID from 14 ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB2 uig join @GUIDUnsGroupB02 gg on uig.UID_UNSGroupB2 = gg.UID_SingleGuid union select uig.UID_UNSAccountB 15 as uid from UNSAccountBHasUNSGroupB2 uig join @GUIDUnsGroupB02 gg on uig.UID_UNSGroupB2 = gg.UID_SingleGuid ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB2' 16, @DBQueueElements_02 end declare @GUIDUnsGroupB03 QBM_YSingleGUID insert into @GUIDUnsGroupB03(UID_SingleGuid) select g.UID_UNSGroupB3 from UNSGroupB3 17 g join inserted i on g.XObjectKey = i.ObjectKeyGroup if @@ROWCOUNT > 0 begin declare @DBQueueElements_03 QBM_YDBQueueRaw insert into @DBQueueElements_03 18 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select uig.UID_UNSAccountB as uid from UNSAccountBInUNSGroupB3 uig join @GUIDUnsGroupB03 19 gg on uig.UID_UNSGroupB3 = gg.UID_SingleGuid union select uig.UID_UNSAccountB as uid from UNSAccountBHasUNSGroupB3 uig join @GUIDUnsGroupB03 gg on uig.UID_UNSGroupB3 20 = gg.UID_SingleGuid ) as x exec QBM_PDBQueueInsert_Bulk 'TSB-K-UNSAccountBInUNSGroupB3', @DBQueueElements_03 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd 21 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 22
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 not, INSERT into; reads/joins inserted, UNSGroupB, UNSAccountBInUNSGroupB, UNSAccountBHasUNSGroupB, UNSGroupB1…
Declared parameters
No declared parameters in sys.parameters for this object, or metadata was not available.
DML targets
INSERT not INSERT intoCalled routines
Read/join references
SQL dependency metadata
- inserted
- QBM_PDBQueueInsert_Bulk
- QBM_PSessionErrorAdd
- QBM_YDBQueueRaw
- QBM_YSingleGUID
- 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 @GUIDUnsGroupB00 @ROWCOUNT @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.