ALTER PROC Portal.WaitForStub (@seconds BIGINT)
AS
BEGIN
/****************************************************************************
Joe Kelly
2011-12-09 14:03:18.870
Stub method to simulate a long-running process up to a day.
Input is in seconds.
EXEC Portal.WaitForStub 3
****************************************************************************/
SET NOCOUNT ON
DECLARE @time DATETIME
SELECT @time = CAST((@seconds / 3600) AS VARCHAR(2)) + ':' + CAST((@seconds / 60) AS VARCHAR(2)) + ':' + CAST((@seconds % 60) AS VARCHAR(2))
WAITFOR DELAY @time
END
Friday, December 9, 2011
Subscribe to:
Posts (Atom)