Viewing 15 posts - 43,171 through 43,185 (of 59,063 total)
You're welcome. Thanks for the response.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2009 at 5:20 am
The article is well written and my hat is off to the author for that. I have to agree with the others, though... using XML to split delimited data...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2009 at 7:47 pm
lmu92 (6/28/2009)
Paul White (6/28/2009)
lmu92 (6/28/2009)
Paul White (6/27/2009)
Clearly, in this case, and with this data distribution, there is nothing to choose between the three methods. ...Paul
But how about the method I...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2009 at 8:40 am
Paul White (6/28/2009)
Jeff, could you let me have the number of your handrail-installation team please? 😀
PIVOT can be used with dynamic SQL, just the same as the CASE...SUM idea.
Heh......
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2009 at 8:31 am
Paul White (6/28/2009)
Guys,Does it really matter that much what was meant by the word 'correct'?
Taking the poor guy to task over semantics seems unfair.
Paul
Nah... not the word "correct"... I want...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2009 at 8:18 am
At least the correct answer wasn't "close" to all the other answers because none of the answers are correct in 2k.
1.2345679E+9
Before you start beating the "latest version" drum on that......
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 9:47 pm
Just a quick question... I don't see where the column called "PrcocedureName" in the error log table is either described or used in the article. Is it just an...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 9:12 pm
Paul White (6/27/2009)
Clearly, in this case, and with this data distribution, there is nothing to choose between the three methods.
I'll probably stick to using the Cross-Tab code (one method or...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 8:57 pm
jo stovall (6/25/2009)
When I ran your SQL statement, I got this:
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'sys.Objects'.
Privileges, you...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 8:37 pm
Lynn Pettis (6/26/2009)
Sinshith S Anand (6/26/2009)
Hello Friends,I made necessary changes on the program. Now it will work smoothly..I will be careful from next time
Okay, this is a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 8:29 pm
NewBie (6/23/2009)
Jeff Moden (6/23/2009)
Will there ever be 3 rows?No, only 2 rows. But why do you ask ?
Just to be sure. Problems like this usually fail sometime in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 8:23 pm
Eswin (6/24/2009)
The story is i have non-clustered PK .
I want to make this non-clustered PK to clustered PK in sql server 2000 because it will improve performance i guess.
When...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 8:12 pm
sqlguru (6/24/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 7:35 pm
Florian Reischl (6/27/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2009 at 7:16 pm
Thanks for the feedback, Vick. If you want that to fly, convert it to a bit of pre-aggregation. Like this...
[font="Courier New"];WITH
ctePreAgg AS
(
SELECT BatchID, ParamName, MIN(ParamValue) AS MinParamValue
FROM #Foo
GROUP BY BatchID, ParamName
)
SELECT BatchID,
MIN(CASE WHEN ParamName = 'outfolder' THEN ParamValue ELSE NULL END) AS OutFileLocation
MIN(CASE WHEN ParamName = 'outfile' THEN ParamValue ELSE NULL END) AS OutFileName
FROM ctePreAgg
GROUP BY BatchID[/font]
Put an index on BatchID, ParamName with an...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2009 at 10:22 pm
Viewing 15 posts - 43,171 through 43,185 (of 59,063 total)