Why is this script not working..
USE [KN_online]
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[UPDATE_PREMIUM_SERVICE_USER_EXEC]
AS
DECLARE @d24 datetime
SET @d24 = DateAdd(hh,-24, GETDATE())
UPDATE PREMIUM_SERVICE SET nDays = nDays - 1 where Date > @d24
This is suppose to take 1 day of a users remaming days every 24 hours,, But its not working..
Please help.