Back to OIM Explorer

dbo.QBM_TIDialogValidDynamicRef

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogValidDynamicRef. Trigger parent table: DialogValidDynamicRef

Source: sandbox-db sys.sql_modules

Source size: 623 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.

Relations

  • Trigger parent table: DialogValidDynamicRef

Typed Edges

  • trigger on table DialogValidDynamicRef Trigger parent table: DialogValidDynamicRef
  • references source dbo.QBM_FGISessionContext 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_TIDialogValidDynamicRef2  ON DialogValidDynamicRef 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 NOT EXISTS(15      SELECT TOP 1 116      FROM inserted i17      JOIN DialogTable t18        ON i.UID_DialogTableReference = t.UID_DialogTable19      WHERE20        t.TableType IN('T', 'V'))21    BEGIN22      RAISERROR('#LDS#Referenced table has to be of type T or V.|',23      18,24      2)25        WITH nowait26    END27  END TRY28  BEGIN CATCH29    EXEC QBM_PSessionErrorAdd DEFAULT30    RAISERROR('',31    18,32    1)33      WITH NOWAIT34  END CATCH35END
Open raw exported source
SQL ยท Raw5 lines
1  create   trigger QBM_TIDialogValidDynamicRef on DialogValidDynamicRef  for Insert not for Replication as begin  BEGIN TRY if exists (select top2 1 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if not exists (select top3 1 1 from inserted i join DialogTable t on i.UID_DialogTableReference = t.UID_DialogTable where t.TableType in ('T', 'V') ) begin raiserror( '#LDS#Referenced table has to be of type T or V.|'4, 18, 2) with nowait end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 5