Start CTE'en én dag efter minimumsdatoen, og inkrementér indtil slutdatoen:
;with GetDates As (
select DATEADD(day, 1, @maxDate) as TheDate
union all
select DATEADD(day, 1, TheDate)
from GetDates
where TheDate < @curDate
)
...Ændr det første select fra select 1 as counter, @maxDate as Date til select 1 as counter, DATEADD(day,1,@maxDate) as Date, hvis du har brug for at inkludere den første dato anderledes.