Future of Database Mirroring
One of the beloved feature of SQL server standard edition for HA is database mirroring, since you only have 2-node...
2015-03-12
480 reads
One of the beloved feature of SQL server standard edition for HA is database mirroring, since you only have 2-node...
2015-03-12
480 reads
Most companies required to keep their database backup offsite (on tape) for many years due to audit requirement. This normally...
2015-03-12
964 reads
2015 should be a very busy year for most DBAs, due to the end of support of SQL server 2005...
2015-02-06
317 reads
I have been following a few blogs for a number of years now, and one of the most enjoying blog...
2015-02-02
285 reads
We all know that with the latest Windows 2012 R2 and SQL 2014, even with the standard edition, it can...
2014-11-14
404 reads
Every DBA in their career should have done DR drill at some point, in fact it should be done in...
2014-09-18
2,393 reads
You might already read lots of post about SQL server 2012 is license per core rather then per socket and...
2014-04-07
514 reads
Many of us are planning to move to SQL Server 2012 in the coming year, and one of the feature...
2014-04-01
325 reads
Every now and then we all need to perform backup or restore, for large databases when we need to perform...
2013-10-09
611 reads
Everyone knows that installing SQL server requires .Net frameworks 3.5, and it normally install by default, when you run the...
2013-03-12
587 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