Back to OIM Explorer

dbo.QBM_TIDialogMultiLanguage

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogMultiLanguage. single DBQueue insert -> QBM-K-CommonIncSemaphor / QBM_ZDialogSemaphorIncGlobal at line 4; References QBM_PDBQueueInsert_Single; Trigger parent table: DialogMultiLanguage

Source: sandbox-db sys.sql_modules

Source size: 760 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-CommonIncSemaphor / QBM_ZDialogSemaphorIncGlobal at line 4
  • References QBM_PDBQueueInsert_Single
  • Trigger parent table: DialogMultiLanguage

Typed Edges

  • queues DBQueue task QBM_ZDialogSemaphorIncGlobal at line 4 single DBQueue insert -> QBM-K-CommonIncSemaphor / QBM_ZDialogSemaphorIncGlobal at line 4
  • trigger on table DialogMultiLanguage Trigger parent table: DialogMultiLanguage
  • 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

SQL36 lines
1CREATE trigger QBM_TIDialogMultiLanguage2  ON DialogMultiLanguage FOR3INSERT NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    RETURN start:12    DECLARE @GenProcID varchar(38)13    SELECT @GenProcID = dbo.QBM_FGISessionContext('')14    IF EXISTS(15      SELECT TOP 1 116      FROM dialogmultilanguage m17      JOIN inserted i18        ON m.UID_DialogMultiLanguage = i.UID_DialogMultiLanguage19      JOIN dialogcolumn c20        ON m.uid_dialogcolumn = c.uid_dialogcolumn AND c.UID_DialogTable IN('QBM-T-QBMTree', 'QBM-T-DialogMethod',21    'QBM-T-DialogSheet'))22    BEGIN23      EXEC QBM_PDBQueueInsert_single 'QBM-K-CommonIncSemaphor',24      'DIALOG',25      '',26        @GenProcID27    END28  END TRY29  BEGIN CATCH30    EXEC QBM_PSessionErrorAdd DEFAULT31    RAISERROR('',32    18,33    1)34      WITH NOWAIT35  END CATCH36END
Open raw exported source
SQL ยท Raw6 lines
1   create   trigger QBM_TIDialogMultiLanguage on DialogMultiLanguage  for Insert not for Replication as begin  BEGIN TRY if exists (select top 12 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if exists (select top 1 1 3from dialogmultilanguage m join inserted i on m.UID_DialogMultiLanguage = i.UID_DialogMultiLanguage join dialogcolumn c on m.uid_dialogcolumn = c.uid_dialogcolumn4 and c.UID_DialogTable in ('QBM-T-QBMTree', 'QBM-T-DialogMethod', 'QBM-T-DialogSheet' ) ) begin         exec QBM_PDBQueueInsert_single 'QBM-K-CommonIncSemaphor'5, 'DIALOG', '', @GenProcID end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 6