dbo.LDP_ZAllForOneWorkDesk
Stored ProcedureSQL_STORED_PROCEDURESandbox DB
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
- Bulk DBQueue insert -> LDP-K-LDPMachineInLDAPGroup / LDP_ZLDPMachineInLDAPGroup at line 4
- References QBM_PDBQueueInsert_Bulk
Typed Edges
- queues DBQueue task LDP_ZLDPMachineInLDAPGroup at line 4 Bulk DBQueue insert -> LDP-K-LDPMachineInLDAPGroup / LDP_ZLDPMachineInLDAPGroup at line 4
- references source dbo.QBM_PDBQueueInsert_Bulk source text reference
- references source dbo.QBM_PSessionErrorAdd source text reference
- queues DBQueue task LDP-K-LDPMachineInLDAPGroup -> LDP_ZLDPMachineInLDAPGroup QBM_PDBQueueInsert_Bulk 'LDP-K-LDPMachineInLDAPGroup', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH end
References
Referenced By
- No direct source references extracted.
Complete Source
1CREATE PROCEDURE LDP_ZAllForOneWorkDesk(2 @SlotNumber int3)4AS5BEGIN6 BEGIN TRY7 DECLARE @DBQueueElements_01 QBM_YDBQueueRaw8 INSERT INTO @DBQueueElements_01(object,9 subobject,10 genprocid)11 SELECT12 x.uid,13 NULL,14 x.GenProcID15 FROM(16 SELECT17 DISTINCT m.uid_LDPMachine AS uid,18 x.GenProcID19 FROM QBMDBQueueCurrent x20 WITH(readpast)21 JOIN Hardware h22 ON x.uid_parameter = h.uid_WorkDesk AND x.SlotNumber = @SlotNumber23 JOIN LDPMachine m24 ON h.uid_Hardware = m.uid_Hardware) AS x25 EXEC QBM_PDBQueueInsert_Bulk 'LDP-K-LDPMachineInLDAPGroup',26 @DBQueueElements_0127 END TRY28 BEGIN CATCH29 EXEC QBM_PSessionErrorAdd DEFAULT30 RAISERROR('',31 18,32 1)33 WITH NOWAIT34 END CATCH35END
Open raw exported source
1 create procedure LDP_ZAllForOneWorkDesk (@SlotNumber int) as begin BEGIN TRY declare @DBQueueElements_01 QBM_YDBQueueRaw insert into 2@DBQueueElements_01 (object, subobject, genprocid) select x.uid, null, x.GenProcID from ( select distinct m.uid_LDPMachine as uid, x.GenProcID from QBMDBQueueCurrent3 x with (readpast) join Hardware h on x.uid_parameter = h.uid_WorkDesk and x.SlotNumber = @SlotNumber join LDPMachine m on h.uid_Hardware = m.uid_Hardware4 ) as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-LDPMachineInLDAPGroup', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR5 ('', 18, 1) WITH NOWAIT END CATCH end 6