PASS Pre/Post Con Selections
One of my favorite people in the SQL community, Andy Leonard, posted a blog criticizing the selection process for the pre...
2010-05-31
1,775 reads
One of my favorite people in the SQL community, Andy Leonard, posted a blog criticizing the selection process for the pre...
2010-05-31
1,775 reads
What would get over 400 techies to give up a beautiful Saturday and spend the day inside learning about SQL...
2010-05-23
1,015 reads
If you follow me on Twitter or are my friend on Facebook, you might already know the news. I am joining...
2010-04-29
1,998 reads
I was lucky enough to attend the MVP Summit held last week in Redmond and Bellevue. I attended the Summit...
2010-02-23
851 reads
If you haven't seen the Simple-Talk newsletter (it's free, so sign up!) you may not have seen my article on...
2010-02-08
1,263 reads
I was really excited when my PASS DVDs arrived last week. I had purchased the DVDs (or maybe CDs) back...
2010-02-05
948 reads
I'm not sure if I have been tagged by anyone, but this is such an interesting topic I thought I...
2010-01-19
445 reads
If you have been putting off ordering your copy of "SQL Server MVP Deep Dives", now is your chance to...
2009-12-23
473 reads
You learn a lot when teaching someone else, whether that be writing articles or books or actually teaching a class....
2009-12-23
659 reads
Learn how to use common table expressions to simplify your code. Replace temp tables and correlated subqueries with this cool T-SQL feature.
2009-12-08
15,204 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