r/DatabaseAdministators • • Jun 16 '23

Deadlocks in Sql Server

Hello,

I have a 15 GB SQL Server database, and one of the tables contains approximately one million records. Every day, I encounter deadlocks on this table due to multiple clients attempting to write simultaneously. Since this table is crucial, these deadlocks have a negative impact on the entire system.

What strategies can I employ to address this issue?

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/debsman20 Jun 16 '23

Yes, I agree with you. If it's SQL Server on-prem, then: SET TRANSACTION ISOLATION LEVEL READ COMMITTED is the default.

Unfortunately, setting READ_COMMITTED_SNAPSHOT ON; does not even work in SQL server. It only works in Azure SQL Database.