SyntaxFix
Write A Post
Hire A Developer
Questions
DECLARE @CMonth int=null DECLARE @lCYear int=null SET @lCYear=(SELECT DATEPART(YEAR,GETDATE())) SET @CMonth=(SELECT DATEPART(MONTH,GETDATE()))