Part of the DBA-Tools Project. Who Can Actually Do What, at Every Level Sysadmin Members answers the single highest-stakes question: who has unrestricted access. These four scripts answer everything underneath that: explicit object and schema grants inside a database, explicit server-level grants and denies on logins, database role memberships across every online database, and membership…
Part of the DBA-Tools Project. Three Different Ways a Query Can Be the Problem “Which query is causing this” has more than one right answer, because a query can be expensive in different ways: it can burn CPU, it can generate huge I/O, or it can just habitually run slowly every time regardless of resource…
Part of the DBA-Tools Project, in the Performance and Troubleshooting area. “The database is slow” almost never means the whole database, it means one query, one plan, one statistic that went stale at the wrong moment. Eight scripts on this site cover the full path from “something feels slow” to a specific, fixable cause: which…
As a production SQL Server DBA, one of the fastest health checks I run on an Always On Availability Group is a latency check. AG latency is the delay between a transaction committing on the primary replica and that same transaction being hardened and redone on a secondary replica. If the secondary is behind, it…
There are a handful of alerts that immediately change the tone of your day. “The transaction log for database ‘X’ is full” is one of them. When that happens, nothing writes. Applications start throwing errors. Jobs begin failing. Deployments stop mid-flight. In Availability Group environments, secondaries can start drifting behind. It rarely happens quietly. The…
You try to connect to a database and get: Or you attempt to switch it back to multi-user and receive: This usually happens after maintenance, a restore, or when someone has set the database to SINGLE_USER and not switched it back. In single-user mode, only one connection is allowed at a time. If anything else…
Understanding SQL Server Recovery Models is fundamental to backup strategy, restore capability, and transaction log management. A recovery model determines two things: Get it wrong and you either lose restore precision or end up chasing log growth incidents. Every database runs under one of three models: Start by checking what you’re running: What Recovery Model…
This is the master reference I keep bookmarked for every SQL Server environment I touch. Whether you’re checking compatibility, planning an upgrade, or verifying the latest Cumulative Update, having the full build history in one place saves hours. I pulled and cleaned this from the excellent SQL Server Builds site and keep it current here…
Query Store is one of the most useful features for troubleshooting query performance in SQL Server, but it is not always enabled or usable in the way people expect. In practice, Query Store might be: This post walks through how to check whether Query Store is enabled, how to see its current state, and how…
VLF count is one of those checks that doesn’t appear in most performance reviews, doesn’t generate an alert, and doesn’t slow down any single query you can point to. It just makes everything involving the transaction log slower than it should be: backups, restores, recovery after a crash, AG synchronisation lag. I’ve seen databases with…
Always On Availability Groups (4) Auditing (7) Backups (5) Blocking Locking (6) Collectors (7) Database Backups & Recovery (8) Database Backups and Recovery (5) Database Maintenance (7) DBA Tools (24) Disk Space (5) Extended Events (8) Features (6) High Availability (6) Indexes (7) Installation (7) Instance (3) Inventory (6) Jobs (3) Maintenance (6) Migration (13) Monitoring (24) Performance (21) Performance Troubleshooting (9) PowerShell (4) Queries (3) Query Behaviour (5) Security (7) SQL Agent (5) SQL Scripts (17) SQL Server Administration (10) SQL Server Configuration (7) SQL Server Errors (5) SQL Server High Availability (4) SQL Server Internals (3) SQL Server Management Studio (SSMS) (6) SQL Server Monitoring (7) SQL Server Networking (9) SQL Server Security (7) Storage and Capacity (7) T-SQL (9) Temp DB (3) Tracing (7) Transaction Logs (4) Troubleshooting (14) Windows Server (4)