Viewing 15 posts - 901 through 915 (of 7,636 total)
Jeff Moden (2/21/2010)
February 21, 2010 at 12:41 pm
Paul White (2/21/2010)
Personally, I doubt the query is disk-bound; it is more likely that the rewrite introduced a spool of some kind, or is using a kind of join which...
February 21, 2010 at 12:28 pm
Paul White (2/21/2010)
It does seem like an unusual way to copy stuff around - replication springs to mind as an alternative...
While I don't know why the OP does it this...
February 21, 2010 at 12:00 pm
Paul White (2/21/2010)
RBarryYoung (2/20/2010)
Also there's no Primary Key on InventReorder.Do we need one? If so, ([Location], [PartNumber]) seems like a candidate.
Some things are pretty hard without it. For...
February 21, 2010 at 10:02 am
There are two secrets:
First is the [ code="sql" ] tags. Like this:
SELECT * FROM YourTable
The second is the [Quote] button above every post. Whenever you see a cool...
February 21, 2010 at 12:43 am
Set your database to TRUSTWORTHY.
(also, please be aware that this has security implications).
February 21, 2010 at 12:38 am
Sander A. (2/20/2010)
The starting point is a query with a query cost of 4.2, CPU time 4 seconds, execution time 6 seconds. After...
February 21, 2010 at 12:32 am
Welsh Corgi (2/19/2010)
I believe that you want the FOR XML EXPLICIT.
Welsh: Just an FYI, but "FOR XML EXPLICIT" should always be a last resort for XML construction,...
February 21, 2010 at 12:13 am
Lynn Pettis (2/20/2010)
RBarryYoung (2/20/2010)
Lynn Pettis (2/18/2010)
February 21, 2010 at 12:02 am
OK, given all that, ... Why the Loop? You can do everything that you mentioned above, but generate set-oriented SQL, instead of scalar & loop-based SQL. I know...
February 20, 2010 at 9:55 pm
Lynn Pettis (2/18/2010)
Barry is another one that I would be quite happy for should he become a MVP. He's done a lot as well and deserves the recognition.
Thanks, Lynn....
February 20, 2010 at 9:45 pm
"Shoot, Aim, Ready." Heh. Not a best practice for DB Corruption and Recovery.
February 19, 2010 at 11:45 pm
Viewing 15 posts - 901 through 915 (of 7,636 total)