dbo.ATT_TIAttestationObject
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
- Bulk DBQueue insert -> ATT-K-PrepropAttestationObject / ATT_ZAttestationObjectPreProp at line 7
- References QBM_PDBQueueInsert_Bulk
- Trigger parent table: AttestationObject
Typed Edges
- queues DBQueue task ATT_ZAttestationObjectPreProp at line 7 Bulk DBQueue insert -> ATT-K-PrepropAttestationObject / ATT_ZAttestationObjectPreProp at line 7
- trigger on table AttestationObject Trigger parent table: AttestationObject
- references source dbo.QBM_FGISessionContext source text reference
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PPrePropCheckSyntax source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
References
- dbo.QBM_FGISessionContext
- dbo.QBM_PDBQueueInsert_Bulk
- dbo.QBM_PPrePropCheckSyntax
- dbo.QBM_PSessionErrorAdd
Referenced By
- No direct source references extracted.
Complete Source
1CREATE trigger ATT_TIAttestationObject2 ON AttestationObject FOR3INSERT NOT FOR Replication4AS5BEGIN6 DECLARE @ConditionsToCheck 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 @ConditionsToCheck(ContentFull)16 SELECT i.PreProcessorCondition17 FROM inserted i18 EXEC QBM_PPrePropCheckSyntax @ConditionsToCheck19 IF EXISTS(20 SELECT TOP 1 121 FROM inserted i22 LEFT23 OUTER24 JOIN DialogColumn c25 ON i.UID_DialogTable = c.UID_DialogTable AND c.ColumnName = 'XObjectKey'26 WHERE27 c.columnname IS NULL)28 BEGIN29 RAISERROR('#LDS#Non-valid table selected (no XObjectKey exists).|',30 18,31 2)32 WITH nowait33 END34 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw35 INSERT INTO @DBQueueElements_01(object,36 subobject,37 genprocid)38 SELECT39 x.uid,40 NULL,41 @GenProcID42 FROM(43 SELECT i.UID_AttestationObject AS uid44 FROM inserted i) AS x45 EXEC QBM_PDBQueueInsert_Bulk 'ATT-K-PrepropAttestationObject',46 @DBQueueElements_0147 END TRY48 BEGIN CATCH49 EXEC QBM_PSessionErrorAdd DEFAULT50 RAISERROR('',51 18,52 1)53 WITH NOWAIT54 END CATCH55 ende:56 RETURN57END
Open raw exported source
1 create trigger ATT_TIAttestationObject on AttestationObject for INSERT not for Replication as begin declare @ConditionsToCheck 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 @ConditionsToCheck (ContentFull) select i.PreProcessorCondition from inserted i exec QBM_PPrePropCheckSyntax @ConditionsToCheck if exists4 (select top 1 1 from inserted i left outer join DialogColumn c on i.UID_DialogTable = c.UID_DialogTable and c.ColumnName = 'XObjectKey' where c.columnname5 is null ) begin raiserror( '#LDS#Non-valid table selected (no XObjectKey exists).|', 18, 2) with nowait end declare @DBQueueElements_01 QBM_YDBQueueRaw6 insert into @DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, @GenProcID from ( select i.UID_AttestationObject as uid from inserted7 i ) as x exec QBM_PDBQueueInsert_Bulk 'ATT-K-PrepropAttestationObject', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR8 ('', 18, 1) WITH NOWAIT END CATCH ende: return end 9