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

How to create an SSIS variable to check if it is a Weekday or Weekend

$
0
0

In the Snapshot (below) there are two Execute Package Tasks(1 and 2) along with two Execute SQL Tasks (A and B).

I have to create an SSIS variable such that if the value is a day of the week and a weekday (Ex: Monday), then the Execute Package Task 2 has to be triggered. If the value is a weekend (Ex: Saturday or Sunday), then Execute Package Task 1 has to be triggered. Based on 1 or 2 getting triggered, B automatically gets triggered.

The variable should be such that if the user inputs the value as 0 it should trigger Execute Package Task 2 (this pulls data for weekdays)

and if the user inputs value as 1 then it should trigger Execute Package Task 1 (this pulls data for weekends).

Can someone help me creating the variable?

Thank you. 


Sandeep.P



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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