dbo.QBM_TIDialogTable
SQL_TRIGGER parent DialogTable
Created 2025-06-27T18:01:00.937 · modified 2026-04-14T23:23:08.170 · source: live DB sys.objects/sys.sql_expression_dependencies.
Parameters
| Name | Type | Output |
|---|---|---|
| No parameters. | ||
Referenced objects
| Schema | Object | Column/minor | Class |
|---|---|---|---|
| DialogTable | OBJECT_OR_COLUMN | ||
| inserted | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Bulk | OBJECT_OR_COLUMN | ||
| QBM_PDBQueueInsert_Single | OBJECT_OR_COLUMN | ||
| QBM_PGUIDReplaceCustomizerFill | OBJECT_OR_COLUMN | ||
| QBM_PPrePropCheckSyntax | OBJECT_OR_COLUMN | ||
| QBM_PSessionErrorAdd | OBJECT_OR_COLUMN | ||
| QBM_PSQLCheckExecutable | OBJECT_OR_COLUMN | ||
| QBM_VQBMRelationALL | OBJECT_OR_COLUMN | ||
| QBM_YDBQueueRaw | TYPE | ||
| QBM_YParameterList | TYPE | ||
| dbo | QBM_FGISessionContext | OBJECT_OR_COLUMN | |
| dbo | QBM_FGITableName | 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 QBM_TIDialogTable on DialogTable for Insert not for Replication as begin declare @SQLToCheck QBM_YParameterList declare @DebugSwitch 2 int = 0 declare @ConditionsToCheck QBM_YParameterList BEGIN TRY if exists (select top 1 1 from inserted) goto start return start: if @DebugSwitch > 0 3begin print '### im Insert trigger angekommen' end declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('') insert into @ConditionsToCheck 4 (ContentFull) select i.PreProcessorCondition from inserted i exec QBM_PPrePropCheckSyntax @ConditionsToCheck delete @SQLToCheck insert into @SQLToCheck 5(Parameter1, ContentFull) select c.XObjectKey, 'select top 1 1 as columnvalue from ' + b.TableName + ' 6 where ( 7 ' + c.ViewWhereClause + ' 8 )' 9 from inserted c join DialogTable b on b.UID_DialogTable = c.UID_DialogTableBase where c.ViewWhereClause > ' ' exec QBM_PSQLCheckExecutable @SQLToCheck 10, @RaiseError = 1 delete @SQLToCheck insert into @SQLToCheck(Parameter1, ContentFull) select i.XObjectKey, concat('select top 1 1 as columnvalue 11 from (' 12 , ' select ', i.ExtensionForProxyTable, ' 13 from ' , i.tablename , ' 14 where 1 = 0 15 ) as x' ) from inserted i where i.ExtensionForProxyTable 16 > ' ' exec QBM_PSQLCheckExecutable @SQLToCheck, @RaiseError = 1 if @DebugSwitch > 0 begin print '### vor dem 26 Test' end if exists ( select substring 17(TableName,1,26), count(*) from dialogtable group by substring(TableName,1,26) having count(*) > 1 ) begin raiserror( '#LDS#The first 26 characters of a table name have to be unique.|' 18, 18, 2) end if @DebugSwitch > 0 begin print '### nach dem 26 test' end declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object 19, subobject, genprocid) select dbo.QBM_FGITableName(x.uid), null, @GenProcID from (select i.UID_DialogTable as UID from inserted i ) as x exec QBM_PDBQueueInsert_Bulk 20 'QBM-K-CommonPrepropTable', @DBQueueElements_01 exec QBM_PGUIDReplaceCustomizerFill exec QBM_PDBQueueInsert_Single 'QBM-K-TableRevisionFill', null, 21 null, @GenProcID declare @DBQueueElements_36836 QBM_YDBQueueRaw insert into @DBQueueElements_36836(Object, SubObject, GenProcID) select x.uid, null, 22@GenProcID from ( select ra.UID_DialogTableParent as uid from inserted t join QBM_VQBMRelationALL ra on t.UID_DialogTable = ra.UID_DialogTableChild union 23 select ra.UID_DialogTableChild from inserted t join QBM_VQBMRelationALL ra on t.UID_DialogTable = ra.UID_DialogTableParent union select t.UID_DialogTable 24 from inserted t ) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-MissingDisplayRightFill', @DBQueueElements_36836 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd 25 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 26
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.170
inserts DBQueue tasks uses session context values has TRY/CATCH error handling
Summary: calls QBM_PPrePropCheckSyntax, QBM_PSQLCheckExecutable, QBM_PDBQueueInsert_Bulk, QBM_PGUIDReplaceCustomizerFill, QBM_PDBQueueInsert_Single…; writes INSERT not, INSERT trigger, INSERT into; reads/joins inserted, DialogTable, dialogtable, QBM_VQBMRelationALL
Declared parameters
No declared parameters in sys.parameters for this object, or metadata was not available.
DML targets
INSERT not INSERT trigger INSERT intoCalled routines
Read/join references
SQL dependency metadata
Config/session
Config: None extracted.
Session: None extracted.
DBQueue/tasks
QBM-K-CommonPrepropTable QBM-K-TableRevisionFill QBM-K-MissingDisplayRightFillTemp tables / referenced variables
Temp: #LDS #The
Variables: @SQLToCheck @DebugSwitch @ConditionsToCheck @GenProcID @RaiseError @DBQueueElements_01 @DBQueueElements_36836
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.