Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
550 views

intra-query parallel thread deadlocks with only Page Locks with snapshot isolation and change tracking

I've been trying to optimise a data loading process. This is on Sqlserver 2016 (13.0.5850.14 - latest SP&CU). I've switched to change tracking for internal database changes and set tablocks on all ...
Brett's user avatar
  • 111
14 votes
2 answers
2k views

Unclear update conflict

I have two questions: 1. Why do I get update conflict in this situation instead of just blocking: -- prepare drop database if exists [TestSI]; go create database [TestSI]; go alter database [TestSI] ...
Pavel Zv's user avatar
  • 183
7 votes
1 answer
4k views

Is it possible to set DEFAULT TRANSACTION ISOLATION for all connections in SQL Server?

I want the default Transaction Isolation level to be SNAPSHOT. How do I set this on a SQL Server 2016 database?
Inquisitor Shm's user avatar
1 vote
1 answer
717 views

SELECT blocks UPDATE in Snapshot Isolation

We have a database running on SQL Server 2016 SP1 Enterprise and on which Allow Snapshot Isolation is enabled. In this scenario readers do not block writers and writers do not block readers. Today we ...
Frederik Vanderhaegen's user avatar
6 votes
2 answers
3k views

ALTER DATABASE SET ALLOW_SNAPSHOT_ISOLATION ON takes forever

One of vendor software needed to install on a test server for POC. It takes forever when the setup.exe is trying to alter one of the databases with SET ALLOW_SNAPSHOT_ISOLATION ON. The test server ...
donger's user avatar
  • 128