You will have to decide the rule for when the same day of month does not exist in the next month (see 2011-01-31 below).select a.DT, NextMonth = dateadd(month,1,a.DT)from ( -- Test Data select DT = convert(date,'20110131') union all select DT = convert(date,'20110215') union all select DT = convert(date,'20121231') ) aorder by a.DT
Results:DT NextMonth---------- ----------2011-01-31 2011-02-282011-02-15 2011-03-152012-12-31 2013-01-31(3 row(s) affected)
CODO ERGO SUM