Return to Snippet

Revision: 43945
at April 4, 2011 02:11 by edwinet


Initial Code
DECLARE @INTERVALO INT, @ULTIMA_CORRIDA DATETIME
SET @INTERVALO = 5
SELECT  @INTERVALO = 5, @ULTIMA_CORRIDA = DATEADD(minute, -4, GETDATE()) 
SELECT DATEDIFF(minute, @ULTIMA_CORRIDA, GETDATE())

Initial URL

                                

Initial Description

                                

Initial Title
Get last run time

Initial Tags

                                

Initial Language
SQL