Viewing 15 posts - 46,741 through 46,755 (of 59,101 total)
rbarryyoung (12/7/2008)
Actually, a couple of tweaks to noel's version will make it much better:
You need to check the output on that... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2008 at 5:44 am
Kris (12/5/2008)
Is it save to assume that both Pivot and Cross Tabs preform better than tabulating the data from a view that inner joins the table on itself for...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2008 at 5:07 am
Suraj (12/7/2008)
Thank you Jeff.
You bet... thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2008 at 4:54 am
Bob Hovious (12/7/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2008 at 4:54 am
leonp (12/7/2008)
To Jeff's question -
Tr data is never truncated - it has a few DMLs issued very infrequently
To Gail/Krishna's question -
As I understand, since...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2008 at 10:15 am
Patricia Monreal (12/7/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2008 at 10:09 am
Yihong (12/7/2008)
Thank you guys, it worked beautifully in my code.
You bet... thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2008 at 9:50 am
Ken Simmons (12/7/2008)
Thanks Jeff.I knew there was a way to do it without the math, I just cound't think of it last night.
S'ok... Heh... not much coffee at night. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2008 at 9:49 am
Replace the derived table in the from clause with your real table...
SELECT PARSENAME(d.IpAddr,4) As ColA,
PARSENAME(d.IpAddr,3) As ColB,
...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 11:44 pm
Are you saying that [font="Arial Black"]all [/font]the TR tables are Truncated before data is added? If so, then, yeah, you could go to SIMPLE recovery mode. Keyword is...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 11:40 pm
If you throw in the appropriate partition clause, it get's even simpler...
Declare @t Table(i int)
Insert Into @t
Select 1
Union All
Select 1
Union All
Select 1
Union All
Select 2
Union All
Select 2
Union All
Select 3
Union All
Select 3
Union...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 11:31 pm
Very cool... 2 seconds huh? That was going to be my next question. What kind of hardware are you running? I'm running a 6 year old P4...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 11:22 pm
Heh... what I'd like to do is to be able to show emoticons AND leave a hanging parenthesis in the same post. None of the emoticons use just a...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 9:31 pm
This will fly... even in the face of a million rows...
--===== Create the same test data as before.
-- This is NOT part of...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 9:08 pm
Um... I'm thinking that's not what you want. Look at the ACTUAL execution plan for that... tell me where, with only 11 rows in the original table, you come...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2008 at 7:30 pm
Viewing 15 posts - 46,741 through 46,755 (of 59,101 total)