Back to OIM Explorer

dbo.QBM_PPrePropCheckSyntax

Stored ProcedureSQL_STORED_PROCEDURESandbox DB

Stored Procedure. Single DBQueue insert -> QBM-K-PrepropGenerateFunction / QBM_ZPrepropGenerateFunction at line 6; References QBM_PDBQueueInsert_Single

Source: sandbox-db sys.sql_modules

Source size: 1.310 characters

Interpretation

  • Database routine. Review parameters, called procedures, DBQueue inserts, and QBM_PJobCreate helper calls before assuming side effects.
  • DBQueue relation detected. Follow the task procedure and referenced-by list for async processing.

Relations

  • Single DBQueue insert -> QBM-K-PrepropGenerateFunction / QBM_ZPrepropGenerateFunction at line 6
  • References QBM_PDBQueueInsert_Single

Typed Edges

  • queues DBQueue task QBM_ZPrepropGenerateFunction at line 6 Single DBQueue insert -> QBM-K-PrepropGenerateFunction / QBM_ZPrepropGenerateFunction at line 6
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_FGISessionErrorRethrow source text reference
  • references source dbo.QBM_PDBQueueInsert_Single source text reference
  • references source dbo.QBM_PPrePropCheckExpression source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • queues DBQueue task QBM-K-PrepropGenerateFunction -> QBM_ZPrepropGenerateFunction QBM_PDBQueueInsert_Single 'QBM-K-PrepropGenerateFunction', '', '', @GenProcID end END TRY BEGIN CATCH declare @Message nvarchar(4000) = concat('Invalid Syntax in preprocessor condition "' , @PreProcessorCondition , '"' ) exec QBM_PSessionE…

Complete Source

SQL63 lines
1CREATE PROCEDURE QBM_PPrePropCheckSyntax(2  @Conditions QBM_YParameterList READONLY3)4AS5BEGIN6  DECLARE @PreProcessorCondition nvarchar(max)7  DECLARE @tabelle QBM_YCursorBuffer8  DECLARE @ElementCount int9  DECLARE @ElementIndex int10  DECLARE @zeiger varchar(38)11  DECLARE @GenProcID varchar(38)12  SET XACT_ABORT OFF13  BEGIN TRY14    SELECT @GenProcID = dbo.QBM_FGISessionContext('')15    INSERT INTO @tabelle(UID1,16    ContentFull)17    SELECT18      newid(),19      x.ContentFull20    FROM @Conditions x21    WHERE22      x.ContentFull > ' '23    SELECT @ElementCount = @@rowcount24    SELECT @ElementIndex = 125    WHILE @ElementIndex <= @ElementCount26    BEGIN27      SELECT28        TOP 1 @zeiger = bu.UID1,29        @PreProcessorCondition = bu.ContentFull30      FROM @tabelle bu31      WHERE32        bu.ElementIndex = @ElementIndex33      EXEC QBM_PPrePropCheckExpression @PreProcessorCondition,34      ''35      SELECT @ElementIndex += 136    END37    IF(38      SELECT count(*)39    FROM @Conditions x40    WHERE41      x.ContentFull > ' ') > 042    BEGIN43      EXEC QBM_PDBQueueInsert_Single 'QBM-K-PrepropGenerateFunction',44      '',45      '',46        @GenProcID47    END48  END TRY49  BEGIN CATCH50    DECLARE @Message nvarchar(4000) = CONCAT('Invalid Syntax in preprocessor condition "',51    @PreProcessorCondition,52    '"')53    EXEC QBM_PSessionErrorAdd DEFAULT,54      @Message55    DECLARE @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow()56    RAISERROR(@Rethrow,57    18,58    1)59      WITH NOWAIT60  END CATCH61  ende:62  RETURN63END
Open raw exported source
SQL · Raw10 lines
1         create   procedure QBM_PPrePropCheckSyntax (@Conditions QBM_YParameterList readonly  ) as begin declare @PreProcessorCondition nvarchar2(max) declare @tabelle QBM_YCursorBuffer declare @ElementCount int declare @ElementIndex int declare @zeiger varchar(38) declare @GenProcID varchar(38)3 SET XACT_ABORT OFF BEGIN TRY select @GenProcID = dbo.QBM_FGISessionContext('') insert into @tabelle (UID1, ContentFull) select newid(), x.ContentFull 4from @Conditions x where x.ContentFull > ' ' select @ElementCount = @@rowcount select @ElementIndex = 1 while @ElementIndex <= @ElementCount begin select5 top 1 @zeiger = bu.UID1 , @PreProcessorCondition = bu.ContentFull from @tabelle bu where bu.ElementIndex = @ElementIndex exec QBM_PPrePropCheckExpression6 @PreProcessorCondition, '' select @ElementIndex += 1 end  if (select count(*) from @Conditions x where x.ContentFull > ' ' ) > 0 begin exec QBM_PDBQueueInsert_Single7 'QBM-K-PrepropGenerateFunction', '', '', @GenProcID end END TRY BEGIN CATCH declare @Message nvarchar(4000) = concat('Invalid Syntax in preprocessor condition "'8 , @PreProcessorCondition , '"' ) exec QBM_PSessionErrorAdd default, @Message declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR9 (@Rethrow, 18, 1) WITH NOWAIT END CATCH ende: return end 10