SELECT CONVERT(VARCHAR(7),DATEADD(MONTH,number,'2016-01-01'),120) FROM master..spt_values WHERE type='P' AND DATEADD(MONTH,number,'2016-01-01')<='2017-01-01'
SELECT CONVERT(VARCHAR(7),DATEADD(MONTH,number,'2016-01-01'),120) FROM master..spt_values WHERE type='P' AND DATEADD(MONTH,number,'2016-01-01')<='2017-01-01'