Back to OIM Explorer

dbo.ATT_TUDialogTable

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogTable. Bulk DBQueue insert -> ATT-K-PrepropAttestationObject / ATT_ZAttestationObjectPreProp at line 5; References QBM_PDBQueueInsert_Bulk; Trigger parent table: DialogTable

Source: sandbox-db sys.sql_modules

Source size: 960 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

  • Bulk DBQueue insert -> ATT-K-PrepropAttestationObject / ATT_ZAttestationObjectPreProp at line 5
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: DialogTable

Typed Edges

  • queues DBQueue task ATT_ZAttestationObjectPreProp at line 5 Bulk DBQueue insert -> ATT-K-PrepropAttestationObject / ATT_ZAttestationObjectPreProp at line 5
  • trigger on table DialogTable Trigger parent table: DialogTable
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PDBQueueInsert_Bulk source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL50 lines
1CREATE trigger ATT_TUDialogTable2  ON DialogTable 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      DECLARE @DBQueueElements_01 QBM_YDBQueueRaw22      INSERT INTO @DBQueueElements_01(object,23      subobject,24      genprocid)25      SELECT26        x.uid,27        NULL,28        @GenProcID29      FROM(30      SELECT31        DISTINCT ao.UID_AttestationObject AS uid32      FROM deleted i33      JOIN dialogTable t34        ON i.UID_DialogTable = t.UID_DialogTable35      JOIN AttestationObject ao36        ON ao.UID_DialogTable = t.UID_DialogTable37      WHERE38        i.IsDeactivatedByPreProcessor <> t.IsDeactivatedByPreProcessor) AS x39      EXEC QBM_PDBQueueInsert_Bulk 'ATT-K-PrepropAttestationObject',40        @DBQueueElements_0141    END42  END TRY43  BEGIN CATCH44    EXEC QBM_PSessionErrorAdd DEFAULT45    RAISERROR('',46    18,47    1)48      WITH NOWAIT49  END CATCH50END
Open raw exported source
SQL ยท Raw8 lines
1create   trigger ATT_TUDialogTable on DialogTable  for Update not for Replication as begin  BEGIN TRY if exists (select top 1 1 from inserted) goto2 start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext(''3) if update(isdeactivatedByPreprocessor) begin declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid4) select x.uid, null, @GenProcID from ( select distinct ao.UID_AttestationObject as uid from deleted i join dialogTable t on i.UID_DialogTable = t.UID_DialogTable5 join AttestationObject ao on ao.UID_DialogTable = t.UID_DialogTable where i.IsDeactivatedByPreProcessor <> t.IsDeactivatedByPreProcessor ) as x exec QBM_PDBQueueInsert_Bulk6 'ATT-K-PrepropAttestationObject', @DBQueueElements_01 end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END 7CATCH end 8