Back to OIM Explorer

dbo.QBM_PDBQueueInsert_Single

Stored ProcedureSQL_STORED_PROCEDURESandbox DB

Stored Procedure. Single DBQueue insert -> W at line 1; Bulk DBQueue insert -> T at line 1; Bulk DBQueue insert -> T at line 7; References QBM_PDBQueueInsert_Single

Source: sandbox-db sys.sql_modules

Source size: 1.378 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.

Verified DBQueue Single Insert Wrapper Notes

  • Source catalog entry dbo.QBM_PDBQueueInsert_Single is a non-generated SQL stored procedure from sandbox-db sys.sql_modules.
  • The procedure signature contains @UID_Task, @object, @SubObject, and @GenProcID; the two dummy parameters are explicitly rejected when they are not -1111 with an obsolete-parameters error.
  • When @GenProcID is empty, the source logs an empty GenProcID diagnostic through QBM_PJournal and falls back to dbo.QBM_FGISessionContext('').
  • The procedure creates a QBM_YDBQueueRaw table variable, inserts one row (Object, SubObject, GenProcID), and delegates to QBM_PDBQueueInsert_Bulk @UID_Task, @DBQueueElements_01.
  • Generated source-index flags show HasDBQueueInsertSingle=1, HasDBQueueInsertBulk=1, HasChangeLimit=0, and HasQbmPJobCreate=0; the source index found 164 SQL modules referencing this procedure.

Operational meaning: This routine is the single-object convenience wrapper for DBQueue insertion. It does not itself write the final queue row in the verified source; it normalizes one object/subobject/genprocid into `QBM_YDBQueueRaw` and hands processing to the bulk path.

Relations

  • Single DBQueue insert -> W at line 1
  • Bulk DBQueue insert -> T at line 1
  • Bulk DBQueue insert -> T at line 7
  • References QBM_PDBQueueInsert_Single
  • References QBM_PDBQueueInsert_Bulk

Typed Edges

  • queues DBQueue task W at line 1 Single DBQueue insert -> W at line 1
  • queues DBQueue task T at line 1 Bulk DBQueue insert -> T at line 1
  • queues DBQueue task T at line 7 Bulk DBQueue insert -> T at line 7
  • references source dbo.QBM_FGISessionContext source text reference
  • references source dbo.QBM_FGISessionErrorRethrow source text reference
  • references source dbo.QBM_PDBQueueInsert_Bulk source text reference
  • references source dbo.QBM_PJournal source text reference
  • references source dbo.QBM_PSessionErrorAdd source text reference
  • queues DBQueue task W -> unresolved procedure QBM_PDBQueueInsert_Single (@UID_Task varchar(38), @object varchar(38), @SubObject varchar(38), @GenProcID varchar(38) , @Dummy_no_Check_For_Existing int = -1111 , @Dummy_Sort_Order int = -1111 ) as begin declare @DebugStartTime datetime = …
  • queues DBQueue task T -> unresolved procedure QBM_PDBQueueInsert_Bulk @UID_Task , @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR (@Rethrow, 18, 1) WITH NOWAIT END CATCH endLabel: exe…

References

Referenced By

Complete Source

SQL67 lines
1CREATE PROCEDURE QBM_PDBQueueInsert_Single(2  @UID_Task varchar(38),3  @object varchar(38),4  @SubObject varchar(38),5  @GenProcID varchar(38),6  @Dummy_no_Check_For_Existing int = -1111,7  @Dummy_Sort_Order int = -11118)9AS10BEGIN11  DECLARE @DebugStartTime datetime = getutcdate()12  DECLARE @Debuglevel char(1) = 'W'13  DECLARE @ErrorMessage nvarchar(4000)14  DECLARE @ErrorSeverity int15  DECLARE @ErrorState int16  SET XACT_ABORT OFF17  BEGIN TRY18    IF isnull(@Dummy_no_Check_For_Existing,19    0) <> -1111 OR isnull(@Dummy_Sort_Order,20    0) <> -111121    BEGIN22      SET XACT_ABORT23        ON24      RAISERROR('#LDS#Obsolete parameters used.|',25      18,26      1)27        WITH NOWAIT28    END29    IF isnull(@GenProcID,30    '') = ''31    BEGIN32      SELECT33        @ErrorMessage = CONCAT('empty GenProcID, Task = ',34        isnull(@UID_Task, '<no>'),35        ' Object = ',36        isnull(@object, '<no>'))37      EXEC QBM_PJournal @ErrorMessage,38        @@ProcID,39      'D',40        @DebugLevel41      SELECT @GenProcID = dbo.QBM_FGISessionContext('')42    END43    DECLARE @DBQueueElements_01 QBM_YDBQueueRaw44    INSERT INTO @DBQueueElements_01(Object,45    subobject,46    Genprocid)47    VALUES(@object,48    @SubObject,49    @GenProcID)50    EXEC QBM_PDBQueueInsert_Bulk @UID_Task,51      @DBQueueElements_0152  END TRY53  BEGIN CATCH54    EXEC QBM_PSessionErrorAdd DEFAULT55    DECLARE @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow()56    RAISERROR(@Rethrow,57    18,58    1)59      WITH NOWAIT60  END CATCH61  endLabel:62  EXEC QBM_PJournal @Debugstarttime,63    @@procid,64  'T',65    @Debuglevel66  RETURN67END
Open raw exported source
SQL · Raw10 lines
1    create   procedure QBM_PDBQueueInsert_Single (@UID_Task varchar(38), @object varchar(38), @SubObject varchar(38), @GenProcID varchar(38)  , 2@Dummy_no_Check_For_Existing int = -1111  , @Dummy_Sort_Order int = -1111 ) as begin  declare @DebugStartTime datetime = getutcdate() declare @Debuglevel3 char(1) = 'W' declare @ErrorMessage nvarchar(4000) declare @ErrorSeverity int declare @ErrorState int SET XACT_ABORT OFF BEGIN TRY if isnull(@Dummy_no_Check_For_Existing4, 0) <> -1111 or isnull(@Dummy_Sort_Order, 0) <> -1111 begin set XACT_ABORT ON  RAISERROR ('#LDS#Obsolete parameters used.|', 18, 1) WITH NOWAIT end  if5 isnull(@GenProcID, '') = '' begin select @ErrorMessage = concat('empty GenProcID, Task = ' , isnull(@UID_Task, '<no>') , ' Object = ' , isnull(@object6, '<no>') ) exec QBM_PJournal @ErrorMessage, @@ProcID, 'D', @DebugLevel select @GenProcID = dbo.QBM_FGISessionContext('') end declare @DBQueueElements_017 QBM_YDBQueueRaw insert into @DBQueueElements_01 (Object, subobject, Genprocid) values( @object, @SubObject, @GenProcID) exec QBM_PDBQueueInsert_Bulk @UID_Task8, @DBQueueElements_01    END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default declare @Rethrow varchar(1000) = dbo.QBM_FGISessionErrorRethrow() RAISERROR9 (@Rethrow, 18, 1) WITH NOWAIT END CATCH endLabel: exec QBM_PJournal @Debugstarttime, @@procid, 'T', @Debuglevel return end 10