dbo.LDP_ZWorkDeskInLDAPGroup
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 ende: return end
References
Referenced By
- No direct source references extracted.
Complete Source
1CREATE PROCEDURE LDP_ZWorkDeskInLDAPGroup(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 p.GenProcID19 FROM QBMDBQueueCurrent p20 WITH(readpast)21 JOIN Hardware a22 ON a.uid_WorkDesk = p.uid_Parameter AND p.SlotNumber = @SlotNumber23 JOIN LDPMachine m24 ON a.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 CATCH35 ende:36 RETURN37END
Open raw exported source
1 create procedure LDP_ZWorkDeskInLDAPGroup (@SlotNumber int) AS begin BEGIN TRY declare @DBQueueElements_01 QBM_YDBQueueRaw insert into @DBQueueElements_012 (object, subobject, genprocid) select x.uid, null, x.GenProcID from ( select distinct m.uid_LDPMachine as uid, p.GenProcID from QBMDBQueueCurrent p with3 (readpast) join Hardware a on a.uid_WorkDesk = p.uid_Parameter and p.SlotNumber = @SlotNumber join LDPMachine m on a.uid_Hardware = m.uid_Hardware ) 4as x exec QBM_PDBQueueInsert_Bulk 'LDP-K-LDPMachineInLDAPGroup', @DBQueueElements_01 END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR (''5, 18, 1) WITH NOWAIT END CATCH ende: return end 6