Articles

Technical Article

Enable TDE for Databases in a SQL Server AlwaysOn Availability Group

A customer has a database that is already set up in a SQL Server Availability Group. Since this database hosts sensitive data, there is a need to encrypt the primary and all secondary replicas of the data. In this article, we will walk through how this can be done.

You rated this post out of 5. Change rating

2025-08-13

SQLServerCentral Article

How to create your custom GPT SQL Expert

Introduction ChatGPT includes custom GPTs. You can create your own custom GPT. In this article, we will demonstrate how to create a custom GPT expert in SQL Server. Requirements To create your own GPT, you need to use the paid version of ChatGPT. First, go to ChatGPT. Secondly, if you don’t have the paid version, […]

5 (1)

You rated this post out of 5. Change rating

2025-08-12 (first published: )

122 reads

SQLServerCentral Article

MongoDB and NodeJS in action

Overview MongoDB is a popular NoSQL database used for building modern, scalable applications. In this article, we’ll cover how to set up MongoDB on Windows and connect to it using Node.js. We will also perform some basic Create, Read, Update, and Delete (CRUD) operations to ensure we understand fully on how Node.js can be made […]

You rated this post out of 5. Change rating

2025-08-08

46 reads

SQLServerCentral Article

Working with Indexes on SSMS

Overview: In SQL Server, indexing is a technique used to improve the performance of queries by reducing the amount of data that SQL Server needs to scan. You can think of it like a table of contents in a book—it helps SQL Server find data more quickly. In this article, we will cover the following […]

1 (1)

You rated this post out of 5. Change rating

2025-08-07

2,955 reads

SQLServerCentral Article

Deprecated but Forgotten: Why SQL Server’s Text, NText, and Image Data Types Still Haunt Your Systems

TEXT, NTEXT, and IMAGE columns have been deprecated for nearly two decades, yet they still silently haunt many SQL Server environments. This article explains their hidden limitations with practical demos and shows why migrating to VARCHAR(MAX), NVARCHAR(MAX), and VARBINARY(MAX) is critical for modern performance, maintainability, and future upgrades.

5 (4)

You rated this post out of 5. Change rating

2025-08-06

1,498 reads

Why CQRS and Event Sourcing Are Gaining Ground in High-Concurrency Web Systems

In web app development company boardrooms, architects and engineers are debating old assumptions. Scaling up isn’t just about faster servers or better caching anymore. It’s about reshaping how systems think. CQRS (Command Query Responsibility Segregation) and Event Sourcing are no longer fringe ideas. They’re becoming default choices in high-concurrency systems where consistency, auditability, and performance […]

You rated this post out of 5. Change rating

2025-08-06

316 reads

SQLServerCentral Article

Advanced SQL Server Page Forensics: Detecting Page Splits and Allocations with DBCC PAGE

Page splits are an often-overlooked performance killer in SQL Server. In this article, we take a forensic look at how serial inserts differ from mid-table inserts, revealing why inserting rows out of order causes hidden page splits, increased IO, and fragmentation. Using a wide-column table, we demonstrate both scenarios and decode their impact with page-level analysis.

5 (1)

You rated this post out of 5. Change rating

2025-08-05

1,986 reads

SQLServerCentral Article

Yet another Date Dimension

Evolution of code The thing with any bit of code that has been around for a while, is that when change comes along, the tendency is to cater for the change by adding new stuff, while nothing gets taken away.  Some stuff has  definitely been taken away from this Date Dimension, but some historical artefacts […]

5 (1)

You rated this post out of 5. Change rating

2025-08-05

2,736 reads

Blogs

PASS Data Community Summit LinkedIn Contest

By

If you're not having success in convincing your organization to send you to this...

Boost SQL Server Security with gMSA: Real-World Examples & PowerShell Scripts

By

When deploying SQL Server in enterprise environments, choosing the right service account model is...

Andreas Wolter on Evading Data Access Auditing

By

There are always bad actors who will seek to get access to and, likely,...

Read the latest Blogs

Forums

Determining the Updated Columns

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Determining the Updated Columns

Carrots and Sticks

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Carrots and Sticks

Replace with like join

By James Bosco

I am trying to create and Update query based on a like join.  Is...

Visit the forum

Question of the Day

Determining the Updated Columns

I am creating a trigger in SQL Server 2022 and want to detect a change in a table. Here is my table DDL:

CREATE TABLE CustomerLarge (
 CustomerID INT NOT NULL IDENTITY(1,1) CONSTRAINT CustomerLargePK PRIMARY KEY CLUSTERED
 , CustomerName VARCHAR(20)
 , CustomerContactFirstName VARCHAR(40)
 , CustomerContactLastName VARCHAR(40)
 , Address VARCHAR(20)
 , Address2 VARCHAR(20)
 , City VARCHAR(20)
 , CountryCode CHAR(3)
 , Postal VARCHAR(20)
 , creditlimit INT
 , discount numeric(4,2)
 , lastorderdate DATETIME
 , lastorderamount NUMERIC(10,2)
 , lastordercontact VARCHAR(20)
 , created DATETIME
 , modified DATETIME
 , modifiedby VARCHAR(20)
 , statusid INT
 , active BIT
 , customersize INT
 , primarysalesid INT)
 GO
If I want to detect that the creditlimit was updated, what IF statements should I use?

See possible answers