Back to OIM Explorer

dbo.QER_RITShopCheckMethodPR

Stored ProcedureSQL_STORED_PROCEDURESandbox DB

Stored Procedure.

Source: sandbox-db sys.sql_modules

Source size: 907 characters

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_PSlotResetWhileJobRun_L source text reference

References

Referenced By

  • No direct source references extracted.

Complete Source

SQL48 lines
1CREATE PROCEDURE QER_RITShopCheckMethodPR(2  @SlotNumber int3)4AS5BEGIN6  DECLARE @ObjectKeysToCheck_Jobrunning QBM_YParameterList7  DECLARE @DBQueueCurrent QBM_YDBQueueCurrent8  DECLARE @resetted int9  BEGIN TRY10    INSERT INTO @DBQueueCurrent(UID_DialogDBQueue,11    UID_Parameter,12    UID_SubParameter,13    GenProcID)14    SELECT15      UID_DialogDBQueue,16      UID_Parameter,17      UID_SubParameter,18      GenProcID19    FROM QBMDBQueueCurrent cu20      WITH(readpast)21    WHERE22      cu.SlotNumber = @SlotNumber23    IF @@rowcount = 024    BEGIN25      GOTO EndLabel26    END27    INSERT INTO @ObjectKeysToCheck_Jobrunning(Parameter1,28    Parameter2)29    SELECT30      x.UID_Org,31      x.XObjectKey32    FROM @DBQueueCurrent cu33    JOIN BaseTree x34      ON cu.UID_Parameter = x.UID_Org35    EXEC @resetted = QBM_PSlotResetWhileJobRun_L @DBQueueCurrent,36      @@PROCID,37      @ObjectKeysToCheck_Jobrunning,38      @SlotNumber = @SlotNumber39  END TRY40  BEGIN CATCH41    EXEC QBM_PSessionErrorAdd DEFAULT42    RAISERROR('',43    18,44    1)45      WITH NOWAIT46  END CATCH47  endLabel:48END
Open raw exported source
SQL ยท Raw7 lines
1create   procedure QER_RITShopCheckMethodPR (@SlotNumber int) AS begin declare @ObjectKeysToCheck_Jobrunning QBM_YParameterList  declare @DBQueueCurrent2 QBM_YDBQueueCurrent declare @resetted int BEGIN TRY insert into @DBQueueCurrent(UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID) select 3UID_DialogDBQueue, UID_Parameter, UID_SubParameter, GenProcID from QBMDBQueueCurrent cu with (readpast) where cu.SlotNumber = @SlotNumber if @@rowcount4 = 0 begin goto EndLabel end  insert into @ObjectKeysToCheck_Jobrunning(Parameter1, Parameter2) select x.UID_Org, x.XObjectKey from @DBQueueCurrent cu 5join BaseTree x on cu.UID_Parameter = x.UID_Org exec @resetted = QBM_PSlotResetWhileJobRun_L @DBQueueCurrent, @@PROCID, @ObjectKeysToCheck_Jobrunning, 6@SlotNumber = @SlotNumber  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH endLabel: end 7