Flag unusually small backups against database-specific history, use aggregate filtering, and investigate alerts without assuming data loss.
Splitting an Amount Across Rows Without Losing a Cent
Make splitting an amount preserve every cent by checking rounded shares, allocating weighted remainders, and documenting deterministic ties.
Plan Properties Window: Where the Useful Numbers Hide
The execution plan picture only shows the shape. The properties window shows what really happened, and I walk through it on a tiny example.
Masking Test Data With REGEXP_REPLACE in SQL Server 2025
Before a production copy reaches a developer, replace the real emails and phone numbers. Here is a small, checked way to do it with REGEXP_REPLACE.
Capturing Successful Logins With an Extended Events Session
A login event is a connection, not a user action. A small session shows how one query can leave three of them behind.
Countdowns in T-SQL: Days, Hours and Minutes Until an Event
A countdown that says 1 day for a one-second gap is counting boundaries, not time. Here is how to build one that tells the truth.







