Viewing 15 posts - 331 through 345 (of 8,416 total)
Sergiy (8/28/2012)
Please explain why:- X locks applied to RID
- IX locks applied to pages.
What makes then different?
SQL Server can acquire locks at different levels, for example it can lock rows,...
August 28, 2012 at 6:53 pm
Usman Butt (8/28/2012)
August 28, 2012 at 3:55 pm
Jeff Moden (8/28/2012)
August 28, 2012 at 3:21 pm
Jeff Moden (8/26/2012)
Ok... I tried those two. Why does the LEFT(@@Dbts,0) speed things up so much?
It's intriguing, enough to be the subject of my next blog post after the...
August 28, 2012 at 5:30 am
Usman Butt (8/28/2012)
August 28, 2012 at 5:16 am
Sergiy (8/26/2012)
You failed to explain how does it compare pages while the locks are applied to RID.
It doesn't compare whole pages - that would be horribly inefficient. It knows...
August 27, 2012 at 11:13 pm
MissTippsInOz (8/27/2012)
August 27, 2012 at 11:00 pm
Fal (8/24/2012)
August 27, 2012 at 6:29 am
Sergiy (8/26/2012)
Was not so clear to me, as it turns out. Learned couple of things here, thanks to the good samaritans.
Good. Well the last (important) thing to be...
August 26, 2012 at 7:10 pm
Sergiy (8/26/2012)
Where did you find "MDF", "HDD" and other stuff from your version of the question???
OP's third post. http://www.sqlservercentral.com/Forums/FindPost1344046.aspx
August 26, 2012 at 6:15 pm
toddasd (8/24/2012)
This is why: http://xkcd.com/386/
No it's not that. The original questioner has his answer, but educational opportunities remain in this thread.
August 24, 2012 at 8:57 am
ChrisM@Work (8/24/2012)
Try converting it to a read-only fast-forward cursor, and changeWHERE CURRENT OF reader
to an explicit UPDATE with a supporting index.
I didn't write it for performance (it's a cursor!)...
August 24, 2012 at 8:55 am
Luis Cazares (8/24/2012)
...the outer apply with EXP(SUM(LOG(value))) gave some unexpected results...
Try it with zero or negative numbers in the 'val' column...
August 24, 2012 at 8:34 am
Luis Cazares (8/24/2012)
I'm curious. Why would you use a cursor?
It's another option. Some people prefer them for some types of running totals problems pre-SQL Server 2012 (e.g. http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/running-sums-redux.aspx).
I tend...
August 24, 2012 at 8:26 am
DECLARE @T AS TABLE
(
id integer NOT NULL,
value integer NOT NULL,
result ...
August 24, 2012 at 7:27 am
Viewing 15 posts - 331 through 345 (of 8,416 total)