top of page


SQL Server 2022 Engine Crashes on Windows Server 2025 — Tracing the Cause to an EDR Heap Hook Incompatibility
[UPDATED] In March 2026, our production messaging-database cluster started crashing again. Same exception code as the incident we resolved last year (0xc0000005, Access Violation), but a different stack signature, different servers, different cloud, and ultimately a completely different root cause. This time the bug wasn't in SQL Server. It wasn't in the storage drivers. It wasn't in our queries. It was in something we'd never have suspected without comparing the crashing ser
May 2513 min read


The Mechanic Goes Beyond Limits
On public speaking, the age of AI, and why I finally stopped making excuses. There's a photo of me on a conference room screen. Batik shirt, arms crossed, smiling — probably more confident than I actually felt in that moment. "AI-Enhanced CI/CD Workflow for SQL Server, Renz Bagasbas, Senior Database Administrator." I stared at that slide for a few seconds before I walked up. Took a breath. And then I spoke. That probably sounds like nothing. For a lot of people, it is nothing
May 144 min read


AI-Powered SQL Migration Script Generator
[UPDATED] There's a principle that stuck with me recently. The core idea was simple: stop describing what you want to build — start building it. If you can explain what you want clearly enough, AI can build it. But the catch is that "clearly enough" is doing a lot of heavy lifting in that sentence. Without structure, AI coding tools produce confident-looking output that quietly falls apart. They ignore your conventions, invent patterns you didn't ask for, and generate code th
Mar 621 min read


SQL Server 2022 Enterprise Repeated Engine Crashes (Access Violation Exceptions)
In late October 2025, our production SQL Server 2022 Enterprise cluster running on AWS EC2 started crashing repeatedly with Access Violation (0xc0000005) exceptions. This wasn't just any database going down — this cluster is the heart of the business. It powers the core platform that our customers depend on every day: real-time communications services, call routing, messaging, and the APIs that integrate with everything downstream. When this database cluster goes offline, the
Feb 276 min read


When Forced Quorum Mode Haunts You
It was a regular Thursday afternoon. The kind where you're wrapping up tasks, maybe thinking about what to have for dinner. And then, at 4:36 PM, the alerts started rolling in. Transaction processing delays. Partial database inaccessibility. The production database cluster — the one that powers core services for an entire region — was going down. Not because of a hardware failure. Not because someone fat-fingered a config change. But because of something far more subtle: a gh
Feb 245 min read


The Two Settings That Fixed Our Production CPU Crisis
How default SQL Server configuration brought a production server to its knees — and how two settings fixed it in under a minute. The Escalation It started with a message from my manager: Attached was a screenshot of CPU pinned near 100%. Not a good look on a production server handling live traffic. The Investigation My first instinct was to hunt for a rogue query. That's usually the culprit — some poorly optimized SELECT statement doing a full table scan, or a report running
Feb 145 min read


How I Built an End-to-End Database CI/CD Pipeline with AI-Generated Migration Scripts
[UPDATED] Database deployments have always been the weak link in most CI/CD pipelines. Application code gets automated pipelines, blue-green deployments, and rollback strategies from day one. Databases? They still get a DBA manually executing scripts, a process that doesn't scale, burns productive hours, and leaves too much room for human error. That workflow needs to be automated, but done carefully, because a bad database deployment can do far more damage than a bad applica
Feb 139 min read


Solving Replication’s Limits with SQL Distributed Availability Group
[UPDATED] One of the major projects I was tasked with in my current role involved solving two persistent issues: Build a redundant Numbering Lookup microservice used by multiple applications. The requirement? It must read from secondary, asynchronous, read-only replicas of NumberingDB, distributed across several regions (DC2, DC3, DC4). The primary source of truth remains NumberingDB in DC1, and our service must only query its regional replicas. Replace SQL Replication for
Jul 18, 202510 min read
Week Seven Onwards
The first six weeks in a new DBA role are often a blur, equal parts learning, adjusting, and firefighting. There’s a lot to take in:...
Jun 24, 20252 min read


Week Six: Index Health with Brent Ozar's First Responder Kit
Earlier, in Week 3, I had explored Glenn Berry’s Diagnostic Queries and Microsoft’s Best Practices Checker . Both of those do give some...
Jun 11, 20254 min read


Week Five: Part 2 - Working Smart with Very Large Tables in SQL Server 2022
Not too long after we reconfigured SQL Server's memory, we expected to see the pressure drop. We did see some improvement, fewer flushes,...
May 30, 20259 min read


Week Five: Part 1 - Working Smart with Very Large Tables in SQL Server 2022
By automating sp_WhoIsActive and deploying it across all our production SQL Servers, I’ve built a pretty reliable, near-real-time view of...
May 28, 20256 min read
Week Four: sp_WhoIsActive Automation – Smarter Query Monitoring
For Week Four, I've put up the work in a more systematic way. If Week Three was about collecting baselines, Week Four is about using that...
May 22, 20254 min read
Week Three: Baselining Part 2 – Microsoft's Best Practices Checker for SQL Server
In Part 1 of this Week 3 dive into SQL Server baselining, I used Invoke-DbaDiagnosticQuery from dbatools to run Glenn Berry’s diagnostic...
May 14, 20253 min read
Week Three: Baselining Part 1 - Glenn Berry’s Diagnostic
Week three goal was pretty starightforward: Baselining a critical task to ensure our SQL Server instances are running smoothly. To gather...
May 7, 20252 min read
Week Two: Laying the Groundwork
The first week marked the beginning of my journey in this new role. I spent that first stretch getting my bearings meeting the team,...
Apr 29, 20255 min read
Starting Fresh: My First Week in a New Role
Updated: Just added some new resources under "My Essential SQL Tools" that should be more useful. I recently stepped into a new chapter...
Apr 23, 20253 min read
bottom of page