Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Load date week after week from last 3 years.

$
0
0

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 JOINAB

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, 



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>