
/***************************************
* STORED stp_PJQ_chiudiZombie
*
* aggiorna la tabella indicando come zoombie processi che abbiano dtLastTry antecedente a @dtLastTryMax e stato=0
*
* Steamware, S.E.L.
* mod: 2013.10.03
*
****************************************/
CREATE PROCEDURE stp_PJQ_chiudiZoombie
(
	@dtLastTryMax	DATETIME
)
AS

UPDATE  PrintJobQueue
SET     stato = -1
WHERE   stato = 0 AND dtLastTry < @dtLastTryMax
