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

Adding days to a date in derived column expression

$
0
0

I am using a derived column which takes data from an XML source to put it into a ole db destination.

In the expression I want to calculate an end date using the supplied start date and a supplied duration field.

This would be a simple dateadd expression, however I need to also account for weekends so if any of the days between the calculated dates are a non working day (saturday or sunday) then I need to increase the end date to account for this.

datename(weekday, getdate())  I know will get me the day of week but not sure how I step through the inbetween dates


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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