Re: row vs page locking...
From: Kalen Delaney (replies_at_public_newsgroups.com)
Date: 09/05/04
- Next message: ben brugman: "Re: row vs page locking..."
- Previous message: Dan Guzman: "Re: row vs page locking..."
- In reply to: Randall Sell: "row vs page locking..."
- Next in thread: Randall Sell: "Re: row vs page locking..."
- Reply: Randall Sell: "Re: row vs page locking..."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 5 Sep 2004 08:32:29 -0700
Hi Randall
The complete storage engine was rewritten for SQL Server 7. I worked for the
Sybase Corporation for many years (starting with their version 2), in
training and tech support, and I taught the high-end performance tuning and
internals classes.
When I started working with MS SQL Server, the architectures were almost
identical and the smallest unit of locking was the page. But when SQL 7 came
out, almost everything had to be relearned from an core engine perspective.
Yes, there is true row level locking.
Maybe the person you heard was referring to a pseudo-row-locking introduced
in SQL Servfer 6.5, but that was just because they couldn't rewrite the
whole engire for that version. For SQL 7, they did.
I even wrote a book about it. If you want all the gory internal details,
check out Inside SQL Server 7 and/or Inside SQL Server 2000.
-- HTH ---------------- Kalen Delaney SQL Server MVP www.SolidQualityLearning.com "Randall Sell" <randall@bytewise.nospam.com.au> wrote in message news:UnE_c.20421$D7.10166@news-server.bigpond.net.au... > Hello all, > > Somewhere on these newsgroups I recall reading that SQL Server 6 and prior > (when they were married with Sybase) used page locking and not row level > locking. Hence you could be locking a lot more records then what you think > when doing an UPDATE or INSERT SQL. > > Now I notice that SQL Server 7 and 2000 claim to use row level locking. (As > you can see, I have been out of the SQL arena for some time). So what I'd > like to know if this is all true? Or marketing mumbo-jumbo? Has Microsoft > made changes at the core of their engine to lock rows? I know that other > RDMSs like Interbase have a versioning engine so it was built from the > ground up for concurrence. And I've read that MSs row level locking is a > band-aid on its unchanged core engine, although the author of that message > did not expand further on this. > > so I figured I'd ask the experts what the truth is. Any help is much > appreciated. > > If indeed it has changed, what sort of test can I run to prove this to my boss? > > regards, > -randall sell
- Next message: ben brugman: "Re: row vs page locking..."
- Previous message: Dan Guzman: "Re: row vs page locking..."
- In reply to: Randall Sell: "row vs page locking..."
- Next in thread: Randall Sell: "Re: row vs page locking..."
- Reply: Randall Sell: "Re: row vs page locking..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|