Hello,
I have to load the last three years data and load week after week. I have a query to pull each week with specifying StartDate and EndDate.
Select
Column0
Case Column1 when 0 then true else False
Sum(Column2+Column3)
From
(
Select
Column0
Column1
Column2
Column3
From Table1
JOIN table 2
JoinTable3
Join Table 4
Where DATE between '08-17-28' and '08-19-18' and datatype = 'Week'
)AS <g class="gr_ gr_34 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="34" id="34">JOINAB</g>
group by
Column1
If I add two weeks like Between '08-10-18' and '08-19-18' and my Tempdb is getting full.
I can Only query for one week but I want to load using SSIS for last 3 years.
Note: This is not one time load, I have to repeatedly do this task.
Please help.
Currently Loading week after week in SSIS for last 3 years,