Hi,
I am struggling to understand what is wrong with the following...
DECLARE @YEAR as varchar(4);
DECLARE @MONTH as varchar(4);
SET @MONTH = MONTH(DATEADD(M,1,GETDATE()));
CASE @YEAR
WHEN @MONTH == '12' THEN '2011';
ELSE YEAR(GETDATE());
END
I receive the following error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.