Back to OIM Explorer

dbo.ADS_TUDialogConfigParm

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogConfigParm. References QBM_PJobCreate*; Trigger parent table: DialogConfigParm

Source: sandbox-db sys.sql_modules

Source size: 932 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.
  • Object-layer bridge detected through QBM_PJobCreate helper usage.

Relations

  • References QBM_PJobCreate*
  • Trigger parent table: DialogConfigParm

Typed Edges

  • trigger on table DialogConfigParm Trigger parent table: DialogConfigParm
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_PJobCreate source text reference
  • references source dbo.QBM_PJobCreate_HOTemplate source text reference
  • references source dbo.QBM_PJobCreate_HOTemplate_B source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference

Complete Source

SQL46 lines
1CREATE trigger ADS_TUDialogConfigParm2  ON DialogConfigParm FOR3UPDATE NOT FOR Replication4AS5BEGIN6  BEGIN TRY7    IF EXISTS(8      SELECT TOP 1 19      FROM inserted)10    GOTO start11    IF EXISTS(12      SELECT TOP 1 113      FROM deleted)14    GOTO start15    RETURN start:16    DECLARE @GenProcID varchar(38)17    SELECT @GenProcID = dbo.QBM_FGISessionContext('')18    IF19    UPDATE(value) OR20    UPDATE(IsEnabledResulting)21    BEGIN22      IF EXISTS(23        SELECT TOP 1 124        FROM DialogConfigParm p25        JOIN deleted d26          ON p.UID_ConfigParm = d.UID_ConfigParm AND(isnull(d.Value, N '') <> isnull(p.Value, N '') OR isnull(d.IsEnabledResulting,27      0) <> isnull(p.IsEnabledResulting, 0))28      WHERE29        d.FullPath = 'TargetSystem\ADS\PersonExcludeList')30      BEGIN31        EXEC QBM_PJobCreate_HOTemplate_B 'ADSAccount',32        '1=1',33          @Columns = 'NeverConnectToPerson',34          @GenProcID = @GenprocID,35          @AdditionalObjectKeysAffected = DEFAULT36      END37    END38  END TRY39  BEGIN CATCH40    EXEC QBM_PSessionErrorAdd DEFAULT41    RAISERROR('',42    18,43    1)44      WITH NOWAIT45  END CATCH46END
Open raw exported source
SQL ยท Raw7 lines
1 create   trigger ADS_TUDialogConfigParm on DialogConfigParm  for Update not for Replication as begin  BEGIN TRY if exists (select top 1 1 from 2inserted) goto start if exists (select top 1 1 from deleted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') if update(value) or update(IsEnabledResulting) begin if exists ( select top 1 1 from DialogConfigParm p join deleted d on p.UID_ConfigParm = d.UID_ConfigParm4 and ( isnull(d.Value,N'') <> isnull(p.Value,N'') or isnull(d.IsEnabledResulting,0) <> isnull(p.IsEnabledResulting,0) ) where d.FullPath = 'TargetSystem\ADS\PersonExcludeList'5 ) begin  exec QBM_PJobCreate_HOTemplate_B 'ADSAccount', '1=1', @Columns = 'NeverConnectToPerson' , @GenProcID = @GenprocID , @AdditionalObjectKeysAffected6 = default end end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 7