Back to OIM Explorer

dbo.QER_TUDialogColumn

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogColumn. Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 4; Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 4; Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5; References QBM_PDBQueueInsert_Single

Source: sandbox-db sys.sql_modules

Source size: 858 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-CommonReCalculate / QBM_ZRecalculate at line 4
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 4
  • Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: DialogColumn

Typed Edges

  • queues DBQueue task QBM_ZRecalculate at line 4 Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 4
  • queues DBQueue task QBM_ZRecalculate at line 5 Single DBQueue insert -> QBM-K-CommonReCalculate / QBM_ZRecalculate at line 5
  • trigger on table DialogColumn Trigger parent table: DialogColumn
  • 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

Referenced By

  • No direct source references extracted.

Complete Source

SQL47 lines
1CREATE trigger QER_TUDialogColumn2  ON DialogColumn FOR3UPDATE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    IF EXISTS(12      SELECT TOP 1 113      FROM deleted)14    GOTO start15    RETURN start:16    DECLARE @GenProcID varchar(38)17    SELECT @GenProcID = dbo.QBM_FGISessionContext('')18    IF19    UPDATE(isdeactivatedByPreprocessor)20    BEGIN21      IF EXISTS(22        SELECT TOP 1 123        FROM DialogColumn c24        JOIN deleted d25          ON c.UID_DialogColumn = d.UID_DialogColumn26        WHERE27          c.IsDeactivatedByPreProcessor <> d.IsDeactivatedByPreProcessor)28      BEGIN29        EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',30        'QER-K-QERRiskIndexMakeProc',31        '',32          @GenProcID33        EXEC QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate',34        'QER-K-QERRiskIndexCalculate',35        '',36          @GenProcID37      END38    END39  END TRY40  BEGIN CATCH41    EXEC QBM_PSessionErrorAdd DEFAULT42    RAISERROR('',43    18,44    1)45      WITH NOWAIT46  END CATCH47END
Open raw exported source
SQL ยท Raw7 lines
1 create   trigger QER_TUDialogColumn on DialogColumn  for Update not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted2) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') if update(isdeactivatedByPreprocessor) begin if exists (select top 1 1 from DialogColumn c join deleted d on c.UID_DialogColumn = d.UID_DialogColumn4 where c.IsDeactivatedByPreProcessor <> d.IsDeactivatedByPreProcessor ) begin exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate', 'QER-K-QERRiskIndexMakeProc'5, '', @GenProcID exec QBM_PDBQueueInsert_Single 'QBM-K-CommonReCalculate', 'QER-K-QERRiskIndexCalculate', '', @GenProcID end end END TRY BEGIN CATCH exec6 QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 7