Back to OIM Explorer

dbo.QBM_TDDialogConfigParmOption

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogConfigParmOption. Single DBQueue insert -> QBM-K-PrepropGenerateFunction / QBM_ZPrepropGenerateFunction at line 3; References QBM_PDBQueueInsert_Single; Trigger parent table: DialogConfigParmOption

Source: sandbox-db sys.sql_modules

Source size: 622 characters

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

  • Single DBQueue insert -> QBM-K-PrepropGenerateFunction / QBM_ZPrepropGenerateFunction at line 3
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: DialogConfigParmOption

Typed Edges

  • queues DBQueue task QBM_ZPrepropGenerateFunction at line 3 Single DBQueue insert -> QBM-K-PrepropGenerateFunction / QBM_ZPrepropGenerateFunction at line 3
  • trigger on table DialogConfigParmOption Trigger parent table: DialogConfigParmOption
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PDBQueueInsert_Single source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • references source dbo.QBM_TDDialogConfigParm source text reference

Complete Source

SQL35 lines
1CREATE trigger QBM_TDDialogConfigParmOption2  ON DialogConfigParmOption FOR3DELETE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM deleted)10    GOTO start11    RETURN start:12    DECLARE @GenProcID varchar(38)13    SELECT @GenProcID = dbo.QBM_FGISessionContext('')14    IF EXISTS(15      SELECT TOP 1 116      FROM deleted d17      JOIN dialogConfigparm c18        ON d.uid_configparm = c.uid_configparm19      WHERE20        c.isPreprocessorCondition = 1)21    BEGIN22      EXEC QBM_PDBQueueInsert_Single 'QBM-K-PrepropGenerateFunction',23      '',24      '',25        @GenProcID26    END27  END TRY28  BEGIN CATCH29    EXEC QBM_PSessionErrorAdd DEFAULT30    RAISERROR('',31    18,32    1)33      WITH NOWAIT34  END CATCH35END
Open raw exported source
SQL ยท Raw6 lines
1  create   trigger QBM_TDDialogConfigParmOption on DialogConfigParmOption  for Delete not for Replication as begin  BEGIN TRY if exists (select 2top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if exists (select top 31 1 from deleted d join dialogConfigparm c on d.uid_configparm = c.uid_configparm where c.isPreprocessorCondition = 1 ) begin exec QBM_PDBQueueInsert_Single4 'QBM-K-PrepropGenerateFunction', '', '', @GenProcID   end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END 5CATCH end 6