Viewing 9 posts - 1 through 9 (of 9 total)
Guess will just post my version maybe will be of some help to someone else.
CREATE FUNCTION [dbo].[weekday_dateadd] ( @startDate SMALLDATETIME, @Days INT, @SkipHoliday BIT = 1, @DayOnly BIT = 1...
November 18, 2010 at 5:22 pm
thank you but unfortunately I don't think that will accommodate my need. I need to be able to add days (weekdays only excluding holidays) to a date, my basic...
November 17, 2010 at 3:29 pm
Anyone... would be a great help... thank you.
November 17, 2010 at 1:59 pm
Wonderful code... could someone assist with a function that uses dim_Date table(s) and works something like http://www.sqlservercentral.com/Forums/Topic207135-23-1.aspx but also accommodates for holidays???
Thinking something like this:
weekday_dateadd(dateTime,<# weekdays>,<0/1>Skip holidays,<0/1>DayOnly -drop time)
Select weekday_dateadd(getdate(),10,1,1)
Thank...
November 17, 2010 at 5:24 am
Not sure if this is the best way to do it but managed to figure it out some what :> WOHOO!
UPDATE #TestTable
SET @prev_flag = flag =...
April 17, 2010 at 6:42 pm
Ok, reading posting now... trying to figure out how to take this to my final step as still trying to understand the SQL :|.
Like to get the first 1 to...
April 17, 2010 at 3:26 pm
That is just the most awesome thing ever!!!! Works like a champ and fast as can be.
Thank you, Thank you,Thank you and Thank you!
(I will definitely read that...
April 17, 2010 at 3:05 pm
I don't like it as it's slow as can be looping 11+ Million records but this does what I need... if anyone can give me suggestions how to do this...
April 17, 2010 at 12:28 pm
Viewing 9 posts - 1 through 9 (of 9 total)