Viewing 4 posts - 1 through 4 (of 4 total)
The function is not recognized when I execute the query.
The only way I have been able the function to work is through statement:
select date from dbo.calcdate('20070227',-4) But I can use this...
February 27, 2007 at 12:48 am
Jeff,
I have the fuction portion written:
create Function dbo.CalcDate
(
@GivenDate DATETIME,
@NumberOfDays INT
)
Returns table
as
Return (SELECT dt
FROM dbo.workcalendar
WHERE WorkDayCount = (SELECT WorkdayCount FROM dbo.workcalendar WHERE dt=@GivenDate)+@NumberOfDays
AND IsWorkDay = 1)
My...
February 26, 2007 at 7:33 pm
Hello Jeff,
Thank you for this, it works great.
I was hoping you could point me in the right direction to using this in my query. I have a Orders table that contains the date factor and...
February 26, 2007 at 5:32 pm
I am trying to accomplish something similar to the original post however I would like to use a business day calendar. I need to take a date like 2/21/2007 and...
February 25, 2007 at 1:02 am
Viewing 4 posts - 1 through 4 (of 4 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy