Browse the archive

DBA Database

Finding active transactions

Confessions of a carbaholic: When I start thinking about `ROLLBACK`, I start thinking about rolls. Have you ever forgot to commit a transaction? Maybe you’ve even left for lunch and caused a problem while you were gone. Uncommitted transactions can cause all …

Continue reading

Finding the Leader Blocker

Who's at the front of the line blocking all the traffic? During the course of normal processing in a database, blocking happens. Blocking is “by design” because your database is on ACID. In an OLTP database, most of your transactions are short in duration, so …

Continue reading

Planning for an outage: Phone numbers

Who ya gonna call? If there's somethin' strange in your neighborhood Who ya gonna call? If it's something weird and it won't look good Who ya gonna call?   This summer, they've been taping the new Ghostbusters movie in Boston. It's pretty cool to see the …

Continue reading

Formatting HTML emails in SQL

When I am writing monitoring/alerting stored procedures for my SQL Servers, its important to have those alerts be well-formatted. I like to minimize the amount of time I spend sorting through emails & alerts, and part of that is making sure that I can …

Continue reading