Viewing 15 posts - 37,861 through 37,875 (of 59,072 total)
ColdCoffee (6/28/2010)
homebrew01 (6/28/2010)
In the last code example, what does " SELECT CHAR(10)" and "FOR XML PATH('') " do in this case ?
CHAR(10) inserts a line-break in the output result
FOR XML...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 7:24 pm
WayneS (6/29/2010)
vince.chittenden (6/29/2010)
If the month function never returns a zero-length string (and it never will in this case, AFAICS), then why not '0' instead of '00'?
You are correct, this would...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 7:09 pm
... and to be sure, I stand corrected. Thanks again for the link to Paul's article on the subject.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 7:02 pm
Dan.Humphries (6/29/2010)
... and I have never gotten the snarky type of responce that is so normally typical on other IT boards.
Ya know, I'm glad I'm not the only one that...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 7:00 pm
huber_jessica (6/28/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:49 pm
bkothe (6/29/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:32 pm
Paul White NZ (6/29/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:15 pm
scott.pletcher (6/29/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:06 pm
scott.pletcher (6/29/2010)
So, the inline CTE has better performance than a tally table? Interesting. Sometimes SQL's performance traits are a bit quirky.
In other functions, I've not found that to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:03 pm
WayneS (6/29/2010)
@jeff -
1. Did you...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:00 pm
rjohal-500813 (6/28/2010)
Chris Morris-439714 (6/28/2010)The question reads "What will be the output of the following?" and none of the answers is correct.
If the question was "Which of these options best...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 5:45 pm
Brian Barkauskas (6/29/2010)
--An alternative without ROW_NUMBER()
--How about this?
select
u.UserID
, stuff((
...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 5:21 pm
WayneS (6/28/2010)
lmu92 (6/28/2010)
This thread include a post by WayneS showing the DelimitedSplit8K function I'm using at the moment.
I believe I saw a follow-up post from Jeff where he found that...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 6:38 am
GilaMonster (6/28/2010)
Jeff Moden (6/28/2010)
...and the data on each page is also in physical order.
Not necessarily. Rows on a page don't have to be in any specific order, SQL puts them...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2010 at 5:38 am
Paul White NZ (6/25/2010)
Gianluca Sartori (6/25/2010)
Great code, Paul, as usual!!
Thanks. Sorry I didn't notice your reply before.
Just one question: what does schemabinding mean here? The return value depends only...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2010 at 5:51 pm
Viewing 15 posts - 37,861 through 37,875 (of 59,072 total)