dbo.QBM_TUAssembly_DialogParameter
Database TriggerSQL_TRIGGERSandbox DB
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-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 5
- References QBM_PDBQueueInsert_Single
- Trigger parent table: DialogParameter
Typed Edges
- queues DBQueue task QBM_ZScriptAssemblyReset at line 5 Single DBQueue insert -> QBM-K-ScriptAssemblyReset / QBM_ZScriptAssemblyReset at line 5
- trigger on table DialogParameter Trigger parent table: DialogParameter
- 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
1CREATE trigger QBM_TUAssembly_DialogParameter2 ON DialogParameter FOR3UPDATE 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 IF EXISTS(13 SELECT TOP 1 114 FROM deleted)15 GOTO start16 RETURN start:17 IF18 UPDATE(ValidationScript) OR19 UPDATE(ValueScript) OR20 UPDATE(OnPropertyChangedScript)21 BEGIN22 IF EXISTS(23 SELECT TOP 1 124 FROM deleted d25 JOIN dialogparameter p26 ON d.uid_DialogParameter = p.uid_DialogParameter27 WHERE28 isnull(d.ValidationScript, N '') <> isnull(p.ValidationScript, N '') OR isnull(d.ValueScript, N '') <> isnull(p.ValueScript,29 N '') OR isnull(d.OnPropertyChangedScript, N '') <> isnull(p.OnPropertyChangedScript, N ''))30 BEGIN31 EXEC QBM_PDBQueueInsert_Single 'QBM-K-ScriptAssemblyReset',32 'Parameters',33 '#',34 @GenProcID35 END36 END37 END TRY38 BEGIN CATCH39 EXEC QBM_PSessionErrorAdd DEFAULT40 RAISERROR('',41 18,42 1)43 WITH NOWAIT44 END CATCH45END
Open raw exported source
1 create trigger QBM_TUAssembly_DialogParameter on DialogParameter for Update not for Replication as begin declare @GenProcID varchar(38) = dbo.QBM_FGISessionContext2('') BEGIN TRY if exists (select top 1 1 from inserted) goto start if exists (select top 1 1 from deleted) goto start return start: if update(ValidationScript3) or update(ValueScript) or update(OnPropertyChangedScript) begin if exists (select top 1 1 from deleted d join dialogparameter p on d.uid_DialogParameter4 = p.uid_DialogParameter where isnull(d.ValidationScript, N'') <> isnull(p.ValidationScript, N'') or isnull(d.ValueScript, N'') <> isnull(p.ValueScript5, N'') or isnull(d.OnPropertyChangedScript, N'') <> isnull(p.OnPropertyChangedScript, N'') ) begin exec QBM_PDBQueueInsert_Single 'QBM-K-ScriptAssemblyReset'6, 'Parameters', '#', @GenProcID end end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 7