BLUE
Profile banner
P
Peter Åkerlund
@djpakerlund.bsky.social
Database professional, Sci-Fi fan and over all skeptic!
34 followers141 following35 posts
Pdjpakerlund.bsky.social

Looking forward to attend SQL Saturday Atlanta.

0
Pdjpakerlund.bsky.social

Finally get around to read @straczynski.bsky.social excelent The Glass Box. I can highly recommend this near future story that felt all to real. Note to my self, Kindle UK as not the same as Kindle US sot got the book two month after it was relased.

0
Reposted by Peter Åkerlund
DDdarlingdata.bsky.social

An idea worth voting for! SSMS Right Click To Open Execution Plans In A New Tab: feedback.azure.com/d365communit...

1
Pdjpakerlund.bsky.social

Great, good to have an explanation. Guess it make sence to have FK validates against the current state and not the version store. Thanks you!

0
Pdjpakerlund.bsky.social

Good question. Yes, table does both have a foreign key and another table have a foreogn key on the table.Good question. Yes, table does both have a foreign key and another table have a foreogn key on the table.

1
Pdjpakerlund.bsky.social

Sure, what ias throwing me of is that is that the dead locks are between S locks and X locks. All Key locks by the way. Seems like MERGE is not using the version store to read the data but instead tried to take a shared lock.Sure, what ias throwing me of is that is that the dead locks are between S locks and X locks. All Key locks by the way. Seems like MERGE is not using the version store to read the data but instead tried to take a shared lock.

1
Pdjpakerlund.bsky.social

Not sure but asume it is a real dead lock as I get the dead lock alert inlcuding dead lock graph in Redgate SQL Monitor.Not sure but asume it is a real dead lock as I get the dead lock alert inlcuding dead lock graph in Redgate SQL Monitor.

0
Pdjpakerlund.bsky.social

I did already find you block and seems to be similar but as you say without the RCSI part. There are some temporary table DDL included as the merge are between the temp table and the target table. The target table do have one non-clustered index but the dead lock is on the PK index.I did already find you block and seems to be similar but as you say without the RCSI part. There are some temporary table DDL included as the merge are between the temp table and the target table. The target table do have one non-clustered index but the dead lock is on the PK index.

1
Pdjpakerlund.bsky.social

Any ideas how two sessions running the same MERGE stagement can dead lock each other when usign RCSI? #sqlhelp Yes, I know you shouldn't use merge but you ahve what you have.

2
Profile banner
P
Peter Åkerlund
@djpakerlund.bsky.social
Database professional, Sci-Fi fan and over all skeptic!
34 followers141 following35 posts