Viewing 15 posts - 931 through 945 (of 2,007 total)
Sorry, I accept that I may be being dense here but as far as I can see you still haven't said what you actually want in your result-set.
February 7, 2012 at 8:43 am
Loundy (2/7/2012)
why?Recursive CTE's are pro:
Hmmm. . . it is after all still a loop.
However, I'm not sure why you'd want to convert a recursive CTE into a while loop -...
February 7, 2012 at 8:33 am
cdh-727733 (2/7/2012)
ID int
ParentID int
CategoryName varchar(50)
My products are categorised only at the leaf level.
My general category navigation I have got...
February 7, 2012 at 7:42 am
niktaxi (2/7/2012)
pname from pname to infection hname infection date diagnosis hname diagnosis date
Christina Winslet Sotiris Chen Maimonides 1916/02/01...
February 7, 2012 at 7:35 am
alex.newsum (2/7/2012)
February 7, 2012 at 7:34 am
Jason-299789 (2/7/2012)
February 7, 2012 at 7:24 am
Do you know all of the codes? Can you create a look-up table with all of the codes in?
February 7, 2012 at 7:17 am
erikpoker (2/7/2012)
For simplicity, lets say i only grouped by two columns in the query. Account_FK and...
February 7, 2012 at 6:51 am
erikpoker (2/7/2012)
Cadavre (2/7/2012)
In the slow running query, your statistics look out of date (e.g. you have a hash match operator that is estimating 7 rows but the actual number of...
February 7, 2012 at 5:09 am
Hey guys, I'm out of my depth here, query tuning without knowing a massive amount of detail is impossible for me. I've managed to get execution plans posted, but...
February 7, 2012 at 4:50 am
erikpoker (2/7/2012)
My apologies. Attached you will find the actual executionplans of the slow and fast running query.
No problem.
In the slow running query, your statistics look out of date (e.g. you...
February 7, 2012 at 4:47 am
GilaMonster (2/7/2012)
Cadavre (2/7/2012)
Shall we get rid of the cursor? Yes, I think we should. 😀The recursive CTE is still iterating, it's just a lot more subtle about it.
Totally agreed,...
February 7, 2012 at 4:34 am
Can you attach the .sqlplan ? An image is no good.
February 7, 2012 at 4:32 am
erikpoker (2/7/2012)
However i cant see how the blogpost relates to my queries.
The inputed parameters is always provided (never nulls) so there is not much use to use...
February 7, 2012 at 4:24 am
Viewing 15 posts - 931 through 945 (of 2,007 total)