Back to OIM Explorer

dbo.ATT_TDAttestationCase

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on AttestationCase. Bulk DBQueue insert -> ATT-K-AttestationHelper / ATT_ZAttestationHelperFill at line 4; References QBM_PDBQueueInsert_Bulk; Trigger parent table: AttestationCase

Source: sandbox-db sys.sql_modules

Source size: 711 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-AttestationHelper / ATT_ZAttestationHelperFill at line 4
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: AttestationCase

Typed Edges

  • queues DBQueue task ATT_ZAttestationHelperFill at line 4 Bulk DBQueue insert -> ATT-K-AttestationHelper / ATT_ZAttestationHelperFill at line 4
  • trigger on table AttestationCase Trigger parent table: AttestationCase
  • 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

SQL39 lines
1CREATE trigger ATT_TDAttestationCase2  ON AttestationCase 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    DECLARE @errno int15    DECLARE @errmsg nvarchar(255)16    DECLARE @DBQueueElements_01 QBM_YDBQueueRaw17    INSERT INTO @DBQueueElements_01(object,18    subobject,19    genprocid)20    SELECT21      x.uid,22      NULL,23      @GenProcID24    FROM(25    SELECT d.UID_AttestationCase AS uid26    FROM deleted d) AS x27    EXEC QBM_PDBQueueInsert_Bulk 'ATT-K-AttestationHelper',28      @DBQueueElements_0129  END TRY30  BEGIN CATCH31    EXEC QBM_PSessionErrorAdd DEFAULT32    RAISERROR('',33    18,34    1)35      WITH NOWAIT36  END CATCH37  ende:38  RETURN39END
Open raw exported source
SQL ยท Raw6 lines
1create   trigger ATT_TDAttestationCase on AttestationCase  for DELETE not for Replication as begin  BEGIN TRY if exists (select top 1 1 from deleted2) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  declare @errno int declare @errmsg nvarchar3(255) declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from (select4 d.UID_AttestationCase as uid from deleted d ) as x  exec QBM_PDBQueueInsert_Bulk 'ATT-K-AttestationHelper', @DBQueueElements_01  END TRY BEGIN CATCH exec5 QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 6