Back to OIM Explorer

dbo.QBM_TIAssembly_DialogColHasSem

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogColumnHasSemaphor. Bulk DBQueue insert -> QBM-K-CommonMakeWatchtrigger / QBM_ZTriggerWatchCreate at line 4; References QBM_PDBQueueInsert_Bulk; Trigger parent table: DialogColumnHasSemaphor

Source: sandbox-db sys.sql_modules

Source size: 792 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-CommonMakeWatchtrigger / QBM_ZTriggerWatchCreate at line 4
  • References QBM_PDBQueueInsert_Bulk
  • Trigger parent table: DialogColumnHasSemaphor

Typed Edges

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

SQL41 lines
1CREATE trigger QBM_TIAssembly_DialogColHasSem2  ON DialogColumnHasSemaphor FOR3INSERT NOT FOR Replication4AS5BEGIN6  DECLARE @GenProcID varchar(38) = dbo.QBM_FGISessionContext('')7  BEGIN TRY8    IF EXISTS(9      SELECT TOP 1 110      FROM inserted)11    GOTO start12    RETURN start:13    DECLARE @DBQueueElements_01 QBM_YDBQueueRaw14    INSERT INTO @DBQueueElements_01(object,15    subobject,16    genprocid)17    SELECT18      x.UID,19      NULL,20      @GenProcID21    FROM(22    SELECT23      DISTINCT t.TableName AS uid24    FROM inserted i25    JOIN DialogColumn c26      ON c.UID_DialogColumn = i.UID_DialogColumn27    JOIN DialogTable t28      ON c.UID_DialogTable = t.UID_DialogTable) AS x29    EXEC QBM_PDBQueueInsert_Bulk 'QBM-K-CommonMakeWatchtrigger',30      @DBQueueElements_0131  END TRY32  BEGIN CATCH33    EXEC QBM_PSessionErrorAdd DEFAULT34    RAISERROR('',35    18,36    1)37      WITH NOWAIT38  END CATCH39  ende:40  RETURN41END
Open raw exported source
SQL ยท Raw7 lines
1  create   trigger QBM_TIAssembly_DialogColHasSem on DialogColumnHasSemaphor  for Insert not for Replication as begin declare @GenProcID varchar2(38) = dbo.QBM_FGISessionContext('') BEGIN TRY if exists (select top 1 1 from inserted) goto start return start:  declare @DBQueueElements_01 QBM_YDBQueueRaw3 insert into @DBQueueElements_01 (object, subobject, genprocid) select x.UID, null, @GenProcID from (select distinct t.TableName as uid from inserted i4 join DialogColumn c on c.UID_DialogColumn = i.UID_DialogColumn join DialogTable t on c.UID_DialogTable = t.UID_DialogTable ) as x exec QBM_PDBQueueInsert_Bulk5 'QBM-K-CommonMakeWatchtrigger', @DBQueueElements_01  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH6 ende: return end 7