Viewing 15 posts - 11,626 through 11,640 (of 49,562 total)
UNION ALL, not UNION. Otherwise you're paying for an unnecessary distinct sort.
September 20, 2013 at 4:53 pm
Have a look at the execution plans if you want to see how the two queries are run differently. Ignore the scan count, it does not give you particularly useful...
September 20, 2013 at 8:23 am
Ignore the scan count. It's not the number of times the table has been scanned. It's not consistent.
September 20, 2013 at 6:47 am
As I said above, if it's CheckDB you're running, you'll need to use the TABLERESULTS option, checkDB does not by default return a resultset. Other DBCC statements do, so it...
September 20, 2013 at 6:45 am
If this is a DBCC statement that only returns messages and you want to insert into a table, you have to use the TABLERESULTS option, otherwise it will only return...
September 20, 2013 at 6:42 am
Execute it once and see?
September 20, 2013 at 6:24 am
If you're trying to avoid access to a table, maybe stored procedures?
September 20, 2013 at 5:57 am
Please post table definition, index definitions and execution plan as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
September 20, 2013 at 5:47 am
Is that plan with them being run together with other stuff, or them running separately?
September 20, 2013 at 5:45 am
Honestly, if something's messed up master, I would recommend restoring it from the latest backup before whatever happened.
September 20, 2013 at 3:27 am
First thing. Why are you partitioning? What's the goal here?
September 19, 2013 at 4:16 pm
dan-572483 (9/19/2013)
It is said that SQL will gradually consume more and more RAM until the server has to page memory, slowing everything to a crawl.
No, it'll consume memory until Windows...
September 19, 2013 at 4:14 pm
Brandie Tarvin (9/19/2013)
Jack Corbett (9/19/2013)
Brandie Tarvin (9/19/2013)
Huh. Apparently the Key Lookup shook itself out of the execution plan a bit later on. Now I've got Clustered Index...
September 19, 2013 at 2:41 pm
Brandie Tarvin (9/19/2013)
When I run...
September 19, 2013 at 2:40 pm
You could filter for Writes = 0, but that will exclude anything that touches TempDB, so maybe not what you want. Why do you want to exclude anything that writes?
September 19, 2013 at 12:30 pm
Viewing 15 posts - 11,626 through 11,640 (of 49,562 total)