dbo.QER_TIQEREntitlementSource
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 -> QER-K-EntitlementSourceMakeProc / QER_ZEntitlementSourceMakeProc at line 4
- References QBM_PDBQueueInsert_Single
- Trigger parent table: QEREntitlementSource
Typed Edges
- queues DBQueue task QER_ZEntitlementSourceMakeProc at line 4 Single DBQueue insert -> QER-K-EntitlementSourceMakeProc / QER_ZEntitlementSourceMakeProc at line 4
- trigger on table QEREntitlementSource Trigger parent table: QEREntitlementSource
- 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 source dbo.QBM_PSQLCheckExecutable source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Single
- dbo.QBM_PSessionErrorAdd
- dbo.QBM_PSQLCheckExecutable
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger QER_TIQEREntitlementSource2 ON QEREntitlementSource FOR3INSERT NOT FOR Replication4AS5BEGIN6 DECLARE @SQLToCheck QBM_YParameterList7 BEGIN TRY8 IF EXISTS(9 SELECT TOP 1 110 FROM inserted)11 GOTO start12 RETURN start:13 DECLARE @GenProcID varchar(38)14 SELECT @GenProcID = dbo.QBM_FGISessionContext('')15 INSERT INTO @SQLToCheck(Parameter1,16 ContentFull)17 SELECT18 c.XObjectKey,19 c.SQLQuery20 FROM inserted c21 WHERE22 c.SQLQuery > ' '23 EXEC QBM_PSQLCheckExecutable @SQLToCheck,24 @RaiseError = 125 EXEC QBM_PDBQueueInsert_Single 'QER-K-EntitlementSourceMakeProc',26 '',27 '',28 @GenProcID29 END TRY30 BEGIN CATCH31 EXEC QBM_PSessionErrorAdd DEFAULT32 RAISERROR('',33 18,34 1)35 WITH NOWAIT36 END CATCH37END
Open raw exported source
1 create trigger QER_TIQEREntitlementSource on QEREntitlementSource for Insert not for Replication as begin declare @SQLToCheck QBM_YParameterList2 BEGIN TRY if exists (select top 1 1 from inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext3('') insert into @SQLToCheck(Parameter1, ContentFull) select c.XObjectKey, c.SQLQuery from inserted c where c.SQLQuery > ' ' exec QBM_PSQLCheckExecutable4 @SQLToCheck, @RaiseError = 1 exec QBM_PDBQueueInsert_Single 'QER-K-EntitlementSourceMakeProc', '', '', @GenProcID END TRY BEGIN CATCH exec QBM_PSessionErrorAdd5 default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end 6