Viewing 15 posts - 181 through 195 (of 1,193 total)
Get rid of all the single quotes in your pivoted column references (both in the IN and in the top-level SELECT).
Cheers!
July 7, 2017 at 2:51 pm
July 7, 2017 at 12:14 pm
There's more than 1 version of the extended ASCII characters.
For reference like this (to compare to the output of CHAR), use the ISO 8859 table shown at http://www.ascii-code.com/
July 6, 2017 at 1:29 pm
Also note that the plan is no longer a parallel plan.
If the original SELECT were making good use of those 10 threads, then running serially could well result...
July 6, 2017 at 12:18 pm
July 6, 2017 at 11:39 am
Also, just to point out the elephant in the room, the slow plan is using the new cardinality estimator, while the fast one is using the old cardinality estimator.
July 5, 2017 at 8:44 am
Since you're overwriting it anyway, just set it offline instead of setting it to single user.
Cheers!
July 4, 2017 at 8:51 pm
Almost certainly a view in play indeed
Cheers!
I travel a quite a lot...
July 4, 2017 at 10:14 am
Here's one way:
SELECT p.name,
sed.referenced_database_name,
sed.referenced_schema_name,
sed.referenced_entity_name
FROM sys.procedures p
INNER JOIN
July 4, 2017 at 10:08 am
July 4, 2017 at 9:23 am
Even without all the optimizer changes and effects from the new CE in play (once you're on compatibility level 100), there are a lot of ways a particular query might...
July 4, 2017 at 9:11 am
Exactly what metrics are you using?
I'm guessing either active or usage (which is directly based on active).
A "low" value for those is NOT a good reason...
July 3, 2017 at 7:40 pm
Steve's response reminds me of the other caveat for the query forms you used and I suggested, which is that they count multiple starts or ends for the same person...
July 3, 2017 at 3:41 pm
Here's one way:
SELECT x.point,
people_gained=SUM(CASE WHEN x.point_type='End' THEN 1 ELSE 0 END),
people_left =SUM(CASE WHEN x.point_type='Start' THEN -1 ELSE 0 END),
...
July 3, 2017 at 11:09 am
Viewing 15 posts - 181 through 195 (of 1,193 total)