Viewing 15 posts - 47,236 through 47,250 (of 59,102 total)
Oh yeah... here's the proof that the Actual Execution Plan for the WHILE loop contains costs for only 1 row or, in this case, one character... that's what the wicked...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 2:26 pm
Also, I never suggested making a Tally table on the fly... a permanent Tally table is really the way to go, in most cases. Exception to that rule is...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 2:18 pm
Ok... here's the code I used to compare the WHILE loop solution you came up with against the Tally table version I posted. I had to increase the size...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 1:59 pm
Just to be sure, you're calling the WHILE loop the "procedural" code, right? If you're giving the "win" to the WHILE loop based on what you found in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 1:15 pm
Heh... you don't actually believe the costs in the execution plan, do you? The execution plan for WHILE loops and other forms of RBAR are only for the FIRST...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 1:01 pm
I believe I'd put a default of ' ' on the nullable column... that way, if an explicit NULL is inserted on the column, it will be NULL... if the...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:55 am
BWAA-HAAA! CBAC would work! Maybe "Character Reading And Processing" fits better. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:48 am
Dooza (11/14/2008)
Invalid object name 'Master.dbo.SysColumns'.
I think my master database is screwed 🙁
We did have some problems a few weeks back with a maintenance...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:43 am
Loner (11/14/2008)
Don't even get me started with outsourcing. In my last company, I spent 4 days to finish a very complicated report. The outsourcing company had two...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:33 am
AndrewMurphy (11/14/2008)
"Um... for what? Using a paltry 40 MB of TempDB?"
...if you read the original message...he was getting TEMPDB full....the only reason TEMPDB was being returned to 40MB was...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:29 am
You bet... thank you for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:26 am
rosh (11/14/2008)
"Student","Subject", "Pass" , "Fail"....Looks like a homework question.....
Heh... and a "classic" homework question at that... that's why I asked "what have you tried so far". When people don't...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:21 am
Sure... you want all the rows of Summary Van No. to be the same?
Whichever, can you make it easy on me by providing the CREATE TABLE statement and some code...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:18 am
K. Brian Kelley (11/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 11:12 am
MikeM7 (11/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2008 at 10:57 am
Viewing 15 posts - 47,236 through 47,250 (of 59,102 total)