Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Insert bulk with TABLOCK hint is causing deadlock

$
0
0

Hi,

We are running a application that inserts rows via INSERT BULK

insert bulk ByltRow ([ByltId] BigInt, [ByesRoundId] Int, [ByesSequenceId] Int, [Loss] Float) with (TABLOCK)

I have up to 10 app servers running the  same insert and I get a deadlock with the following deadlock grap. How is that possible ?

Why is there an IX lock ? It should be X with the TABLOCK hint as far as i understand.

There is a clustered index on ByltID, ByesRoundId and ByesSequenceId.

And there is a publication on the table. When we removed the publication the operation seems to work.

Br,

Staffan



Viewing all articles
Browse latest Browse all 15889

Trending Articles



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