Viewing 15 posts - 54,541 through 54,555 (of 59,098 total)
Not sure why you're trying to do such a simple thing in such a difficult manner... but, using YOUR code...
SELECT * FROM #TestTable
WHERE Title LIKE '%'+@dummy+'%'[/b] or Title is null
OR...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2007 at 7:49 pm
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2007 at 7:26 pm
Heh... can't believe you saved that list, Rudy 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
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? ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2007 at 6:46 pm
Greg Snidow (10/19/2007)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2007 at 6:20 pm
David.Poole (10/19/2007)
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2007 at 5:16 pm
Matt Miller (10/19/2007)
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2007 at 10:47 pm
Matt Miller (10/18/2007)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2007 at 9:31 pm
Viewing 15 posts - 54,541 through 54,555 (of 59,098 total)