Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Deadlock

Author  Topic 

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2006-05-30 : 01:14:06
Dear all,
Here I am Using spid for temporary tables.i got deadlock while using more than one user.!
Here I am reducing Isolation level also

Set transaction isolation level read committed
If Exists ( Select 'x' from bgt_afe_tmp (nolock) WHERE spid = @@SPID)
Begin
DELETE bgt_afe_tmp WHERE spid = @@SPID
End
Set transaction isolation level read uncommitted

Please help me do avoid this deadlock

the Deadlock Details is

Deadlock encountered .... Printing deadlock information
2006-05-30 10:25:25.38 spid4
2006-05-30 10:25:25.38 spid4 Wait-for graph
2006-05-30 10:25:25.38 spid4
2006-05-30 10:25:25.38 spid4 Node:1
2006-05-30 10:25:25.38 spid4 RID: 9:1:296763:0 CleanCnt:2 Mode: X Flags: 0x2
2006-05-30 10:25:25.38 spid4 Grant List 1::
2006-05-30 10:25:25.38 spid4 Owner:0x19f7f3a0 Mode: X Flg:0x0 Ref:0 Life:02000001 SPID:54 ECID:0
2006-05-30 10:25:25.38 spid4 SPID: 54 ECID: 0 Statement Type: DELETE Line #: 542
2006-05-30 10:25:25.38 spid4 Input Buf: Language Event: Begin Tran
EXEC common..bgt_bes_coa_afe_cc_rtr 'UNRWACON' , NULL , 'BGT' , 'BES' , '0-4010' , '0CG02' , 'GF' , NULL , NULL , NULL , NULL , 'A' , NULL , 'BIE2006-07'


Thanks
KK

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-05-30 : 09:56:31
Is you application issuing a BEGIN TRAN or is it in your stored procedure? I don't see a COMMIT or ROLLBACK,is that because the of the deadlock or are you missing that (very necessary) piece of code? Post the entire SP code.

Be One with the Optimizer
TG
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-05-30 : 10:00:54
http://sql-server-performance.com/deadlocks.asp

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -