home page
about us
consulting service
maintenance plan
training
faqs
hints and tips
resources
how to
testimonials
news
blog
case studies
clients
register
log in
contact us
Declare @StartDate as DateTimeDeclare @EndDate as DateTimeSet @StartDate = '10/30/2016'Set @EndDate = '12/11/2016';WITH Dates AS ( SELECT [Date] = @StartDate UNION ALL SELECT [Date] = DATEADD(DAY, 1, [Date]) FROM Dates WHERE [Date] <= @EndDate) SELECT [Date]FROM Dates OPTION (MAXRECURSION 100);
;WITH Dates AS ( SELECT [Date] = @StartDate UNION ALL SELECT [Date] = DATEADD(DAY, 1, [Date]) FROM Dates WHERE [Date] <= @EndDate) SELECT [Date]FROM Dates OPTION (MAXRECURSION 100);