installed SP3a and now I am at version 8.00.760, still seeing the same
locking behavior.
this is what I am doing in Query Analyzer w/the Northwind database:
Window #1:
begin transaction
select description from categories
with (updlock) where categoryid = 1
Window #2:
select description from categories
where categoryid = 1
Window #3:
begin transaction
select description from categories
with (updlock) where categoryid = 1
I run the sql in window #1 and that gets the Update locks on the row
and key, run the sql in window #2 and it runs just fine, run the sql in
window #3 and it 's waiting to get update lock on the key which is what
you'd expect. now when I run the query in window #2 again it hangs
waiting on a Shared lock for the key.
If I change description to "*" it behaves the same way, if I change the
query in window 2 to get another field (categoryid) it's just fine.
Any ideas of why it can't get the shared lock when somebody else is
waiting for update lock?
Erland Sommarskog wrote:
hendershot (ey****@yahoo.com) writes: I was using Standard Edition, it says version 8.00.194 (not 100%
sure about the last 3 digits). does SQL Server 8 = SQL Server 2000?
8.00.194 = The original version of SQL 2000 with no service packs.
You can download the current service pack SP3a from
http://www.microsoft.com/sql/downloads/2000/sp3.asp. I stronly
recommend you download and install this service pack, since it includes a fix
for the Slammer worm.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp