I currently have a function in my SQL database that adds a certain amount of business days to a date, e.g. if you enter a date that is a Thursday and add two days, it will r
I just tested the accepted answer and found that it does not work when Sunday is the start day.
You need to add the following under the Select @Saturday line item:
Select @Saturday
SELECT @fromDate = CASE WHEN DATEPART(weekday,@fromDate) = 1 THEN DATEADD(day,1,@fromDate) ELSE @fromDate END