Groups | Blog | Home
all groups > sql server clustering > june 2005 >

sql server clustering : Transation deadlock on cluster environment


Kevin Yu
6/28/2005 8:38:00 AM
hi all

got a situation here, there are 3 app server that are running a same
application to delete records in the sql server
periodically. what happen is that they all start up at the same time to
delete records on the same table.(this could be fixed by varying the start
up
time on each app server for that application, but it's not a prefer
solution.)

so there is this error:
transaction (process ID #100) was deadlocked with another process and
has been chosen as the deadlock victim. Rerun your transaction."

now I have read some article online saying putting a "with (UPDLOCK)" after
the FROM <some table> will
fix the problem.

does anybody have the similar experience? what would be a perfect fix?


thx


Kevin


neo ew
9/3/2005 11:23:33 AM


it's deleting multiple rows.

Nik Marshall-Blank
9/3/2005 11:59:17 AM
How are you doing the delete?
Is is a single row delete or a set (multiple row) delete?
Are they all trying to delete the same rows or do they only delete rows
specific to each application?

--
Nik Marshall-Blank MCSD/MCDBA

[quoted text, click to view]

AddThis Social Bookmark Button