473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Key Lock Hashed Resource Text Value not unique?

I have a deadlock situation, part of the problem looks like this;

spid ecid dbid ObjId IndId Type Resource Mode
Status
------ ------ ------ ----------- ------ ---- ---------------- -------
------
404 0 9 792389892 1 KEY (010086470766) SIU
WAIT
72 0 9 792389892 1 KEY (010086470766) SIU
WAIT
115 0 9 792389892 1 KEY (010086470766) SIU
WAIT
61 0 9 792389892 1 KEY (010086470766) IS
WAIT
318 0 9 792389892 1 KEY (010086470766) SIU
WAIT
430 0 9 1112391032 1 KEY (010086470766) X
GRANT

They are key locks I am used to the resource value generally being
unique by table. I am wondering if the other 'WAIT's are indeed
waiting based on the 'unique' resource value. Note that the exclusive
grant is on a different table but, the resource rsc_text value is the
same. Looking it up I get for a key lock that it's a hashed value, my
referance tells me what is is for a non-clustered index but, does not
explain what it would be for a clustered index.

Does it protect this resource based exclusively on resource rsc_text or
is it unique by ObjID/Rsc_text, has anyone seen this before?
Suggestions?

SQL Server 2000/SP3

-Chris

Jul 23 '05 #1
1 2787

Nevermind, the hash as far as I can tell is rowid/key value in this
case 1,1 and 1,1. I reproduced and was able to get exclusive lock on
two tables with same rsc_text value, so lock is unique by
ObjId/Resource (at least). I went thru the lock table again and found a
NULL lock MODE that I had missed that had a GRANT status, expanding the
script to display the expanded modes.

Thanks anyways..

Jake wrote:
I have a deadlock situation, part of the problem looks like this;

spid ecid dbid ObjId IndId Type Resource Mode
Status
------ ------ ------ ----------- ------ ---- ---------------- ------- ------
404 0 9 792389892 1 KEY (010086470766) SIU
WAIT
72 0 9 792389892 1 KEY (010086470766) SIU
WAIT
115 0 9 792389892 1 KEY (010086470766) SIU
WAIT
61 0 9 792389892 1 KEY (010086470766) IS
WAIT
318 0 9 792389892 1 KEY (010086470766) SIU
WAIT
430 0 9 1112391032 1 KEY (010086470766) X
GRANT

They are key locks I am used to the resource value generally being
unique by table. I am wondering if the other 'WAIT's are indeed
waiting based on the 'unique' resource value. Note that the exclusive grant is on a different table but, the resource rsc_text value is the
same. Looking it up I get for a key lock that it's a hashed value, my referance tells me what is is for a non-clustered index but, does not
explain what it would be for a clustered index.

Does it protect this resource based exclusively on resource rsc_text or is it unique by ObjID/Rsc_text, has anyone seen this before?
Suggestions?

SQL Server 2000/SP3

-Chris


Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: M Wells | last post by:
Hi All, I have a table that holds pregenerated member IDs. This table is used to assign an available member id to web site visitors who choose to register with the site So, conceptually the...
5
by: MaRcElO PeReIrA | last post by:
Hi guys, I have a simple table: teste=# \d forn Table "public.forn" Column | Type | Modifiers...
5
by: xixi | last post by:
hi, i am using db2 udb v8.1 on windows, i create a index on a unique value column on a table to try to create row lock, here is what i do , sql = select value from table where id=1 for update,...
2
by: Fernando Rodríguez | last post by:
Hi, I've been reading the multithreading tutorial at http://www.yoda.arachsys.com/csharp/threads/locking.shtml (thanks Jon :-) and there's one thing I don't understand. Why do have to pass a...
1
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ...
5
by: Lloyd Dupont | last post by:
in an ASP.NET page I have some static method which get value for the cache or, if the cache is empty, query the database, put the value in the cache and return it. because ASP.NET is thread...
4
by: Mrinal Kamboj | last post by:
Hi , I had a doubt regarding a piece of code with me , that has to do with System.Threading.Thread class . In it user instantiates an array of Thread class and to all of them assign a method...
17
by: djc | last post by:
I got great info on related question previously. This link <http://www.yoda.arachsys.com/csharp/threads/volatility.shtml> from Brian Gideon was especially informative. 1) the lock statement does...
2
by: rmgalante | last post by:
I am using the standard asp.net membership provider. I have users who forget their password. They attempt to login 5 times and they get locked out. The membership configuration in web.config...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.