Viewing 15 posts - 54,511 through 54,525 (of 59,067 total)
I think you'll find the problem in one of the text columns... you may have some trailing spaces in some of the descriptions. You can check for those by...
October 19, 2007 at 7:35 pm
I have checked all possible solutions for these but still get complaints from users about the slowness.
I'm thinking you haven't checked ALL possible solutions if you still have a problem...
October 19, 2007 at 7:26 pm
Heh... can't believe you saved that list, Rudy 😀
October 19, 2007 at 7:05 pm
Why not just include all non-working days including weekends and perform one check instead of two?
Larger number of rows? Correlated aggragate sub-query on large number of rows? ...
October 19, 2007 at 6:46 pm
Greg Snidow (10/19/2007)
October 19, 2007 at 6:20 pm
David.Poole (10/19/2007)
October 19, 2007 at 5:49 pm
Jack Corbett (10/19/2007)
I really enjoyed the thread. A lot of good information and no one got personal as I have seen happen when...
October 19, 2007 at 5:16 pm
Matt Miller (10/19/2007)
October 19, 2007 at 9:06 am
And, here's my "weekdays between dates" original post... just for reference 😀
http://www.sqlservercentral.com/articles/Advanced+Querying/calculatingworkdays/1660/
Part of what's so good about it is that it doesn't need to use a function... makes it very...
October 19, 2007 at 2:12 am
Ok everyone... pay very close attention... I'm going to say it again until you get it...
[font="Arial Black"]CLR's are for people who don't know T-SQL[/font]
First, Matt... thank you, Sir, for providing...
October 19, 2007 at 1:24 am
Ok... just ran Matt's code against the million row table... Ladies and Gentlemen, we have a tie! :w00t: Matt's function took the same amount of time as mine.
One thing...
October 18, 2007 at 11:34 pm
First, nicely done, Matt! Yeah, if you don't include the start date as a Week Day, then you're correct... adding 30 Weekdays to '20070514' would, in fact, be 6/25...
October 18, 2007 at 11:31 pm
Heh... now you've made a real mess of the formatting... :hehe:
Ooops... never mind... dunno what happened but it went back to a good format when I posted this message...
October 18, 2007 at 10:47 pm
Matt Miller (10/18/2007)
October 18, 2007 at 9:31 pm
Ah... sorry, it doesn't work as expected... it includes weekends which is what Greg is trying to exclude... in terms of your example, he wants to add 30 "week days"...
October 18, 2007 at 9:16 pm
Viewing 15 posts - 54,511 through 54,525 (of 59,067 total)