Viewing 15 posts - 916 through 930 (of 1,192 total)
Ah, very interesting Gail! Thanks for that additional info.
So, just to double check, when you run the second INSERT after the TRUNCATE (all within the same transaction) in 2012 SP2,...
July 18, 2015 at 10:36 am
Ah, now it's getting really interesting, since this seems to be a distinct phenomenon.
For that bit of code, I'm seeing the same as you two. On 2008 R2 SP3, page...
July 18, 2015 at 10:32 am
I know what lock escalation is, but thanks for the refresher 🙂
Technically it does rely on changing modes (IS to S and IX to X) at the table level, and...
July 18, 2015 at 9:12 am
I didn't say it was blocked; I said lock escalation failed, because it seems the engine can't escalate to X from Sch-M (because Sch-M is a more protective lock).
Very different...
July 18, 2015 at 8:24 am
Ah, it took me a few reads, but I think I understand what you're saying now.
If I understand you correctly, your point is that even in the "fixed" version,...
July 17, 2015 at 6:39 pm
Thanks for pointing out that article Gail!
From Microsoft's response in the Connect item Adam mentioned:
Adam: This is a regression in lock escalation algorithm in SQL2008. We know what...
July 17, 2015 at 2:38 pm
I'm glad I could help!
Oh for crying out loud! I can't believe that I overcomplicated it!
We've all been there. 🙂
Cheers!
July 15, 2015 at 1:44 pm
If I understand what you want, you don't need to partition the result, since you want the number sequence to persist across all the values, based solely on ColB.
At least...
July 15, 2015 at 1:32 pm
Koen Verbeeck (7/15/2015)
Meh, who cares about mirroring 😀 Availability Groups FTW!Thanks for the question.
Heh, I really hope mirroring doesn't go away for a long, long time. AGs, for all their...
July 15, 2015 at 10:19 am
Off the top of my head, the most straightforward way to do that is probably to check all the databases in which the sessions have locks. Something like this:
SELECT request_session_id,...
July 15, 2015 at 9:39 am
Based on the Excel sheet it looks like what you're doing is getting the the percentile rank of the volume for day 1 for each symbol, basing that percentile rank...
July 14, 2015 at 5:55 pm
If I understand your requirement correctly, then the below should do the trick, convoluted though it is:
WHERE EXISTS (
SELECT *
FROM User_Activities AS ua
WHERE p.Id...
July 14, 2015 at 5:13 pm
GilaMonster (7/14/2015)
Personally, to make it clear(er) that EXISTS doesn't care what the columns are.And 1/0 works, but something like LOG(-1) doesn't. I suspect the latter is a parse-time error.
Ah, now...
July 14, 2015 at 4:18 pm
ASYNC_NETWORK_IO waits are rather unfortunately named. They don't necessarily indicate that the network is the bottleneck. Basically, when a client issues a query, SQL Server places the result set to...
July 14, 2015 at 4:07 pm
No. The information in sys.dm_db_index_usage_stats will persist after a reorganization. A rebuild will remove the entry for that index in sys.dm_db_index_usage_stats, and then stats collection will start over.
Cheers!
July 14, 2015 at 3:00 pm
Viewing 15 posts - 916 through 930 (of 1,192 total)