Viewing 15 posts - 3,031 through 3,045 (of 4,080 total)
No problem, Jace 🙂
Several times, I've realized that I missed something significant in the original post. Surely it happens to other people too.
--------------
LD, you are quite welcome.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 17, 2009 at 7:12 am
I'm really glad to hear that are you concerned about efficiency. Here are the tried and true ways to measure performance.
declare @timer datetime
Set statistics time on; ...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 17, 2009 at 6:53 am
Note to self: Only drink water... in small sips... while reading The Thread.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 17, 2009 at 6:42 am
Yes, John, you were.... and you were.
(applause, thunderous applause)
But now we're at 3501 and moving on towards 4,000... the moment was just too good to last.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 8:52 pm
VARCHAR(MAX) is tough on Tally table and other pseudo-cursor solutions for a number of reasons.
So the answer is "It depends." No doubt you will be honest...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 7:29 pm
You could also do this:
1. Use @TermPeriodId int = NULL in your parameters list.
2. Immediately following SET NOCOUNT ON;
set @TermPeriodId = isnull((select termperiodid from...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 7:06 pm
Yes, new in 2005, CTEs are (for me) much easier to follow alternative to subqueries. They are like views that only exist for a single query. I...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 6:02 pm
I'm part of the 1% of SQL humanity that hasn't read your article yet. Is it on your blog?
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 5:23 pm
Barry!! You're AWAKE !!
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 4:51 pm
One Thread to rule them all.
One Thread to find them.
One Thread to bring them all
and in the darkness bind them....
Glad you could join us, Flo.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 4:49 pm
You didn't learn to program in RPG did you? 😀
I've used both SUBSTRING and STUFF. Lately I've stayed with STUFF. You should also test...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 4:17 pm
While we're all scratching our heads, may I suggest that you simplify this a little by using a CTE up front to develop values? Use your existence test...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 4:11 pm
You got extra points if it was a nasal coke spew.
You should get extra points... those suckers are painful !!
Pork chops... I don't even want to think about it. ...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 3:01 pm
I'm not one to throw stones... especially where the word "fool" is involved 😉
By the way, the respect is returned.
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 2:34 pm
I have nothing to offer but blood, toil, tears and Thread....

__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
April 16, 2009 at 2:12 pm
Viewing 15 posts - 3,031 through 3,045 (of 4,080 total)