473,386 Members | 1,867 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,386 software developers and data experts.

urgent deadlock problem on Sql Server 2000

it occours every about 5-6 minutes
this is the info i fo8und on sql server log

2007-03-26 12:55:33.64 spid4 ResType:LockOwner Stype:'OR' Mode: S SPID:135 ECID:0 Ec:(0x4DB77570) Value:0x4a
2007-03-26 12:55:33.64 spid4 Victim Resource Owner:
2007-03-26 12:55:33.64 spid4 ResType:LockOwner Stype:'OR' Mode: X SPID:137 ECID:0 Ec:(0x4DE61570) Value:0x4a
2007-03-26 12:55:33.64 spid4 Requested By:
2007-03-26 12:55:33.64 spid4 Input Buf: RPC Event: sp_LIST_ITEM_FREE;1
2007-03-26 12:55:33.64 spid4 SPID: 135 ECID: 0 Statement Type: SELECT Line #: 17
2007-03-26 12:55:33.64 spid4 Owner:0x4c9cbda0 Mode: S Flg:0x0 Ref:0 Life:00000001 SPID:135 ECID:0
2007-03-26 12:55:33.64 spid4 Grant List 2::
2007-03-26 12:55:33.64 spid4 KEY: 8:670625432:27 (ed01093823e3) CleanCnt:2 Mode: S Flags: 0x0
2007-03-26 12:55:33.64 spid4 Node:2
2007-03-26 12:55:33.64 spid4
2007-03-26 12:55:33.64 spid4 ResType:LockOwner Stype:'OR' Mode: S SPID:135 ECID:0 Ec:(0x4DB77570) Value:0x4a
2007-03-26 12:55:33.64 spid4 Requested By:
2007-03-26 12:55:33.64 spid4 Input Buf: RPC Event: sp_executesql;1
2007-03-26 12:55:33.64 spid4 SPID: 137 ECID: 0 Statement Type: UPDATE Line #: 1
2007-03-26 12:55:33.64 spid4 Owner:0x4c244b00 Mode: IX Flg:0x0 Ref:1 Life:02000000 SPID:137 ECID:0
2007-03-26 12:55:33.64 spid4 Grant List 0::
2007-03-26 12:55:33.64 spid4 PAG: 8:1:14584 CleanCnt:2 Mode: IX Flags: 0x2
2007-03-26 12:55:33.64 spid4 Node:1
2007-03-26 12:55:33.64 spid4
2007-03-26 12:55:33.64 spid4 Wait-for graph
2007-03-26 12:55:33.64 spid4
2007-03-26 12:55:33.64 spid4 ...

the deadlock seem to happen between a select SP and Update statement executed with sp_executesql

can anyone help me avoid this problem
if you need anything else such as SP sql or table definition please ask me

thanks in advance
Mar 26 '07 #1
3 2565
iburyak
1,017 Expert 512MB
Yes, without code it is almost impossible to resolve this issue.
But on my experience it happens when update is not within a transaction. I mean

[PHP]
BEGIN TRAN

COMMIT TRAN [/PHP]

Or it could be a trigger on this table that does something on the same table at the time of update.
Mar 26 '07 #2
i modified the select sp in the from clause(deadlock object table) with "with (nolock)"
and no deadlock happend since
hope this works
thank you for your response
Mar 26 '07 #3
iburyak
1,017 Expert 512MB
You should be really careful when giving query hints.
Usually server does best job for you and you shouldn't recommend doing something that can possibly have unpredictable consequences.


Good Luck.
Mar 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE...
10
by: HB Kim | last post by:
Hello, What could possibly cause data in the SQL server database to be removed, except being deleted manually? We had a couple of situations where data in certain records disappeared although the...
1
by: Piyush Govil | last post by:
Hi Everybody I need some urgent help. In my project, I need to save the flash Format files into MS SQL SERVER 2000 and retrieve and display in the control using Flash Player. I am able to...
2
by: Rob | last post by:
Apologies if this is a frequently asked question but i haven't been able to find a satsifactory answer anywhere else at the moment. My problem is that i'm trying to convert an Access97 database...
1
by: Tams TS | last post by:
I want to know whether C# components can talk to commerce server 2000. It will be great to if anyone gives the approach or directions for this, as it is quite urgent. Thanks in Advance. ***...
4
by: Nasir | last post by:
I've a database in 2000 which needs to be accessed from 2005 via linked server. I've tried the GUI options and it is failing. One thins is that our both servers have hyphen('-' not underscore,...
2
by: sohail28 | last post by:
Hello, I want to Buy "SQL Server 2000 Personal Edition", from online or reseller etc., I fed up of searching for SQL Server 2000 Personal Edition, in online & in Software Market. Any one can...
1
by: jai80 | last post by:
hi frenz, I would like to know how to create a stored procedure in sql server 2000, to send email, to the set of emailids that are stored in a table. Its urgent. Any kindaa help is really...
0
by: Dhanasekaran B | last post by:
Dear, I have one table in Sql Server 2000. I need to covert XML. Please send solution for this. This is Very urgent.
3
by: abraham1 | last post by:
Hai, As I am doing project in a university , i need the coding of how to store image in sql server 2000 from asp.net written in vb language. Can anyone of U please help me....... I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.