Viewing 15 posts - 5,986 through 6,000 (of 8,416 total)
Sander A. (2/21/2010)
February 21, 2010 at 6:10 am
GSquared (2/19/2010)
You'll need to use your column name instead of the XML variable, but it should do what you want.
A much more efficient query plan is produced from this code:
DECLARE...
February 21, 2010 at 6:01 am
I would need to sit down with you for several hours to give that query and plan the discussion it deserves 😉
Nevertheless:
1. In your original post, you said the...
February 21, 2010 at 5:20 am
The ROW_NUMBER() method will often be the fastest available, and a very consistent performer, but there are cases where a query based on an APPLY might be faster still. ...
February 21, 2010 at 4:45 am
You could also look into why the SQL Server is generating so much log activity. There might be a quick win there.
In an ideal world, the DBA would just...
February 21, 2010 at 3:56 am
SELECT TOP (10)
MIN[QuestionID],
[Title],
...
February 21, 2010 at 3:49 am
The question of why there was a delay can be answered by considering the internal structure of log files.
Books Online has an excellent description of it:
February 21, 2010 at 3:43 am
It does seem like an unusual way to copy stuff around - replication springs to mind as an alternative.
Nevertheless, given that the code exists, and you just need a way...
February 21, 2010 at 3:33 am
That's nice code Chris. It represents a nice compromise between the benefits of an indexed view, and the drawbacks related to the maintenance of aggregates for that view. ...
February 21, 2010 at 3:19 am
Hello again,
It's a lot more difficult for people like me, who know nothing about your data, to understand what you mean, even with that longer explanation.
Maybe I'm just not very...
February 21, 2010 at 3:16 am
chris.nilsson (2/21/2010)
It is ad-hoc--it comes in as a query passed in from the web front end, rather than as a stored proc or the like.
I will try...
February 21, 2010 at 3:06 am
ChrisM@home (2/21/2010)
February 21, 2010 at 3:02 am
BSavoie (2/21/2010)
Thanks for the tip on posting code! THAT makes quite a difference!! 😀
No worries! It's a small thing, but helps a lot, yes.
BSavoie (2/21/2010)
February 21, 2010 at 3:01 am
None of the replies so far explain the increase in worktable reads.
Personally, I doubt the query is disk-bound; it is more likely that the rewrite introduced a spool of some...
February 21, 2010 at 1:56 am
RBarryYoung (2/20/2010)
Also there's no Primary Key on InventReorder.
Do we need one? If so, ([Location], [PartNumber]) seems like a candidate.
February 21, 2010 at 1:28 am
Viewing 15 posts - 5,986 through 6,000 (of 8,416 total)