Viewing 15 posts - 4,276 through 4,290 (of 5,394 total)
Steve, I suppose you noticed that my previous "ouch" had a link to another thread...
May 13, 2010 at 7:25 am
Heh, Mr. Coffee, virtual machines are horribly slower than physical machines.
There's a virtualization layer between your system and the physical resources: CPU, disks and memory must be accesses through...
May 13, 2010 at 6:59 am
SQL Server 2008 R2 RTM is out since May 3rd.
I installed it on my laptop and in SSMS about dialog I get:
Microsoft SQL Server Management Studio10.50.1600.1
Hope this helps
Gianluca
May 13, 2010 at 1:56 am
Great explanation, Jeff! That's one thing I wanted to ask.
It's strange to see that partition by seems to be faster than distinct. I would have expected to be equally...
May 12, 2010 at 1:34 am
GilaMonster (5/12/2010)
The Dixie Flatline (5/11/2010)
Gianluca, did I understand you to say that queries against views don't have their query plans cached? Surely not.
Views do not have cached exec...
May 12, 2010 at 1:19 am
I would code as a stored procedure, as it can cache the query plan.
It's a quite vague question, without any other requirement this is all I can suggest.
Hope this helps
Gianluca
May 11, 2010 at 10:16 am
I get:
19 seconds for the first run
16 seconds for the second run
Don't run the select * from #myhead statement, as it involves presenting results in SSMS.
May 11, 2010 at 8:30 am
Grant Fritchey (5/11/2010)
I hate using hints. Any hints. I always feel that using a hint means I've failed in my tuning efforts.
Me too. That's why I hate tuning queries...
May 11, 2010 at 8:14 am
I've never done that, but, according to BOL's description of copy only backup, I think it can be done.
May 11, 2010 at 7:53 am
The issue with the RECOMPILE hint is the one described here by Erland Sommarskog. Maybe I misunderstood what he meant, but I still believe there's something wrong with it.
May 11, 2010 at 7:48 am
The only downside I see in using hints is that they have statement scope, not procedure scope. If I remember right, there's an issue still not fixed in the RECOMPILE...
May 11, 2010 at 6:58 am
It makes sense. Everything I can suggest is trying to convert the code into dynamic SQL. It's fast and it doesn't cache bad plans.
You could use the ability of...
May 11, 2010 at 6:51 am
It can surely be converted in SQL2000 code.
Just get rid of CTEs and PIVOT and it will look like this:
SELECT [Art],
Avg_Days_in = SUM(CASE [Status] WHEN 'In' THEN AVG_DIFF...
May 11, 2010 at 6:45 am
Viewing 15 posts - 4,276 through 4,290 (of 5,394 total)