SQL Server Transactions and Locking (Part 1)
In many situations, data modification requires several steps. For example, you may need to change the values ??in two separate...
2013-05-22
605 reads
In many situations, data modification requires several steps. For example, you may need to change the values ??in two separate...
2013-05-22
605 reads
The well-designed online analytical processing (OLAP) solution is fundamental to organizations analysis capabilities. That is why, when designing the OLAP...
2013-05-22
884 reads
With the release of SQL Server 2005 and later releases, Microsoft introduced set of new dynamic management view and function...
2013-05-22
579 reads
The following table lists all builds of SQL Server 2012 known hotfixes, service packs and KB articles that have been...
2013-05-08
1,619 reads
The following table lists all builds of SQL Server 2008 R2 known hotfixes, service packs and KB articles that have...
2013-05-08
21,244 reads
The following table lists all builds of SQL Server 2008 known hotfixes, service packs and KB articles that have been...
2013-05-08
1,323 reads
The following table lists all builds of SQL Server 2005 known hotfixes, service packs and KB articles that have been...
2013-05-08
2,582 reads
The following table lists all builds of SQL Server 2000 known hotfixes, service packs and KB articles that have been...
2013-05-08
2,320 reads
The following table lists all builds of SQL Server 7.0 known hotfixes, service packs and KB articles that have been...
2013-05-08
1,141 reads
Like other mainstream commercial database systems, Microsoft SQL Server allows you to create multiple indexes on the same column of...
2013-05-07
1,205 reads
One feature that I have been waiting for years! The new announcement around optimize...
Following on from my last post about Getting Started With KubeVirt & SQL Server,...
By DesertDBA
I haven’t posted in a while (well, not here at least since I’ve been...
Comments posted to this topic are about the item Refactoring SQL Code, which is...
Comments posted to this topic are about the item The Read Committed Snapshot Isolation...
Comments posted to this topic are about the item Working with JSON/JSONB Data in...
I am currently working with Sql Server 2022 and AdventureWorks database. First of all, let's set the "Read Committed Snapshot" to ON:
use master; go alter database AdventureWorks set read_committed_snapshot on with no_wait; goThen, from Session 1, I execute the following code:
--Session 1 use AdventureWorks; go create table ##t1 (id int, f1 varchar(10)); go insert into ##t1 values (1, 'A');From another session, called Session 2, I open a transaction and execute the following update:
--Session 2 use AdventureWorks; go begin tran; update ##t1 set f1 = 'B' where id = 1;Now, going back to Session 1, what happens if I execute this statement?
--Session 1 select f1 from ##t1 where id = 1;See possible answers