dbo.QER_RBaseTreeHasObjectExtAtt
Stored ProcedureSQL_STORED_PROCEDURESandbox DB
Interpretation
- Database routine. Review parameters, called procedures, DBQueue inserts, and QBM_PJobCreate helper calls before assuming side effects.
Relations
- No extracted relations.
Typed Edges
- references source dbo.QBM_PSessionErrorAdd source text reference
- references source dbo.QBM_PSlotResetOnMissingItem_L source text reference
- references source dbo.QER_RBaseTreeHasObject source text reference
References
Referenced By
- No direct source references extracted.
Complete Source
1CREATE PROCEDURE QER_RBaseTreeHasObjectExtAtt(2 @SlotNumber int3)4AS5BEGIN6 DECLARE @ObjectKeysToCheck_Projection QBM_YParameterList7 DECLARE @ObjectKeysToCheck_Jobrunning QBM_YParameterList8 DECLARE @MyName nvarchar(64) = object_name(@@procid)9 DECLARE @DBQueueCurrent QBM_YDBQueueCurrent10 DECLARE @resetted int11 BEGIN TRY12 INSERT INTO @DBQueueCurrent(UID_DialogDBQueue,13 UID_Parameter,14 UID_SubParameter,15 GenProcID)16 SELECT17 UID_DialogDBQueue,18 UID_Parameter,19 UID_SubParameter,20 GenProcID21 FROM QBMDBQueueCurrent cu22 WITH(readpast)23 WHERE24 cu.SlotNumber = @SlotNumber25 IF @@rowcount = 026 BEGIN27 GOTO EndLabel28 END29 EXEC @resetted = QBM_PSlotResetOnMissingItem_L @DBQueueCurrent,30 'BaseTree',31 'UID_Org',32 @SlotNumber33 END TRY34 BEGIN CATCH35 EXEC QBM_PSessionErrorAdd DEFAULT36 RAISERROR('',37 18,38 1)39 WITH NOWAIT40 END CATCH41 endLabel:42END
Open raw exported source
1create procedure QER_RBaseTreeHasObjectExtAtt (@SlotNumber int) AS begin declare @ObjectKeysToCheck_Projection QBM_YParameterList declare @ObjectKeysToCheck_Jobrunning2 QBM_YParameterList declare @MyName nvarchar(64) = object_name(@@procid) declare @DBQueueCurrent QBM_YDBQueueCurrent declare @resetted int BEGIN TRY insert3 into @DBQueueCurrent(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID4 from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount = 0 begin goto EndLabel end exec @resetted = QBM_PSlotResetOnMissingItem_L5 @DBQueueCurrent, 'BaseTree', 'UID_Org', @SlotNumber END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH6 endLabel: end 7