Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Avoid or Remove Deadlock

$
0
0

Hi,

I have two process running parallel. One process(process1) is deleting rows in table 1. But in another process(process2) table2 is getting inserted with rows.

Table2 has table1's primary key as reference. Here the process1 locks the table 1 while deleting. But process2 seeks the table1 for inserting the data in table 2.

S0 these tables creates the dead lock.

How to avoid this deadlock situation?

Thanks In Advance,

Dinesh.


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>