Refactoring SQL Code
Refactoring code is a common task in many software development teams. Steve asks if this is something common for database developers as well.
2025-12-12
78 reads
Refactoring code is a common task in many software development teams. Steve asks if this is something common for database developers as well.
2025-12-12
78 reads
Getting something done is important, but so is the quality level. Steve has a few thoughts today.
2025-11-26
88 reads
Adopting a modern development approach brings with it the need to manage PRs, which Steve thinks can be like trouble tickets.
2025-10-01
114 reads
Steve found someone using an interesting approach to get developers to address some technical debt.
2025-09-08
145 reads
Technical debt is something all of us deal with in our systems, and today Steve has a few thoughts on the impact of debt on database sysstems.
2025-06-25
162 reads
If you have had to fix the thing you just fixed with a fix, you might enjoy today's editorial.
2025-06-16
101 reads
Steve looks back at the Mythical Man Month, a book every software engineer and manager should read.
2025-06-06
105 reads
Today Steve is wondering how you approach coordinating application and database changes. Share which one you deploy first.
2025-04-16
174 reads
Feature flags are being used in modern software development. Steve thinks these should also be a staple of database changes.
2025-04-07
346 reads
Should we build modern software as monoliths or microservices? Or something else? Steve has a few thoughts today.
2025-03-24
133 reads
By Steve Jones
Superheroes and saints never make art. Only imperfect beings can make art because art...
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,...
hi, i noticed the sqlhealth extended event is on by default , and it...
Using New-AzSqlInstanceServerTrustCertificate to import a certificate and get the message New-AzSqlInstanceServerTrustCertificate: Long running operation...
Comments posted to this topic are about the item Refactoring SQL Code, which is...
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