Viewing 15 posts - 16 through 30 (of 84 total)
Sorry Kevin, I've deleted those txt's and added the sqlplan files now
October 18, 2016 at 8:52 am
I attached the two exec plans (Query1 and 2) as txt files as the UI wouldn't allow me to attach XML files
If I've done that wrong let me know.
This is...
October 18, 2016 at 8:46 am
Thanks for that Chris, CROSS APPLY is a lot neater in this case alright
October 13, 2016 at 10:18 am
I just looked at your very first query in that article and saw the first inner join and shouted a four letter word in my head 🙂 Sometimes you can...
October 13, 2016 at 8:37 am
That sounds about right to me Grant, the join on this subquery are on some very non specific values - NAVDate and QID. This sub query is basically a catch...
October 13, 2016 at 8:15 am
The Temp table is a lookup table for each record that I'm applying the update for instead of using a function call (which returns the Ret value) within the main...
October 13, 2016 at 7:16 am
So the original DB owners, in their infinite wisdom, are using varchar(10)'s to store DATE values
For testing purposes, I just changed the date field on my temp table to a...
October 13, 2016 at 4:59 am
Exec plan attached
I'm wondering if this might be combination of using the <= operator in the inner join along with using a temp table which might be throwing the stats...
October 13, 2016 at 3:43 am
Yeah tried that along with rebuilding and reorganzing the indexes.
The index used does cover the query and performs a seek not a scan
October 13, 2016 at 2:33 am
Just want to clarify something:
I was looking at a previous post:
http://www.sqlservercentral.com/Forums/Topic415829-338-4.aspx
and I'm thinking that the way in which this query is coded is the most likely answer for...
September 29, 2015 at 10:26 am
Thanks Eric, I'll try that the next time the problem arises
Unfortunately I can't reproduce it all the time to test this, but if I can get it running slowly again...
September 25, 2015 at 9:53 am
I don't fully understand MAXDOP but I do vaguely remember an issue in a previous job where the MAXDOP was the cause of a similar issue.
I don't know the processor...
September 25, 2015 at 9:36 am
Hi Phil
No blocking on the db, from what I've compared on an Index Seek (looking at the operation with the highest cost 88%), the numbers look more or less the...
September 25, 2015 at 9:12 am
You're correct Gail (I'd say you get that a lot :-)), after I reviewed the code compared to the stuff I posted, I didn't state the select in the same...
August 27, 2015 at 2:31 am
Hi Gail
The select in use is a select of a view of the table in question using different columns in the where clause - the view holds the where clause...
August 26, 2015 at 8:24 am
Viewing 15 posts - 16 through 30 (of 84 total)