MS SQL Server - Configure readonly connection
Posted: Tue 02 Feb 2016 10:16
My server application uses MS SQL Server 2012 database. I have a website that causes many readonly connections to read from the database.
Then I run a background task from time to time for updates on some tables. This causes a lot of "timeout error" in my readonly tasks.
My question is, what are the best settings for my readonly connection (e.g. isolation level) in order to avoid timeouts due update locks. My data is not critical regarding transactions, so "dirty reads" wouldn't heart, but the timeouts do.
I already increased the timeout for requests to 30 seconds, but it's not enough. And I have no easy solution to replace my update commands with insert commands so I don't get locks.
Any hints for this problem would be helpfull.
cu Christian
Then I run a background task from time to time for updates on some tables. This causes a lot of "timeout error" in my readonly tasks.
My question is, what are the best settings for my readonly connection (e.g. isolation level) in order to avoid timeouts due update locks. My data is not critical regarding transactions, so "dirty reads" wouldn't heart, but the timeouts do.
I already increased the timeout for requests to 30 seconds, but it's not enough. And I have no easy solution to replace my update commands with insert commands so I don't get locks.
Any hints for this problem would be helpfull.
cu Christian