Back to OIM Explorer

dbo.QBM_TDDialogDashBoardDef

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogDashBoardDef. Bulk DBQueue insert -> QBM-K-CommonDashboardDef / QBM_ZDashBoardDefine at line 4; References QBM_PDBQueueInsert_Bulk; Trigger parent table: DialogDashBoardDef

Source: sandbox-db sys.sql_modules

Source size: 654 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 -> QBM-K-CommonDashboardDef / QBM_ZDashBoardDefine at line 4
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: DialogDashBoardDef

Typed Edges

  • queues DBQueue task QBM_ZDashBoardDefine at line 4 Bulk DBQueue insert -> QBM-K-CommonDashboardDef / QBM_ZDashBoardDefine at line 4
  • trigger on table DialogDashBoardDef Trigger parent table: DialogDashBoardDef
  • 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

SQL35 lines
1CREATE trigger QBM_TDDialogDashBoardDef2  ON DialogDashBoardDef 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 @DBQueueElements_01 QBM_YDBQueueRaw15    INSERT INTO @DBQueueElements_01(object,16    subobject,17    genprocid)18    SELECT19      x.uid,20      NULL,21      @GenProcID22    FROM(23    SELECT uid_DialogDashBoardDef AS UID24    FROM deleted) AS x25    EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonDashboardDef',26      @DBQueueElements_0127  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_TDDialogDashBoardDef on DialogDashBoardDef  for Delete not for Replication as begin  BEGIN TRY if exists (select top 1 1 from2 deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  declare @DBQueueElements_01 QBM_YDBQueueRaw3 insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from (select uid_DialogDashBoardDef as UID from deleted 4) as x exec QBM_PDBQueueInsert_Bulk 'QBM-K-CommonDashboardDef', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR (''5, 18, 1) WITH NOWAIT END CATCH end 6