Category: Monitoring
-
SQL Server Activity Monitor in SSMS (and the Performance Dashboard)
Activity Monitor gives you a live look at a SQL Server instance from SSMS with no RDP session. What it shows, what it needs, and when a script does the job better.
Written by
-
sp_who vs sp_who2 vs sp_whoisactive in SQL Server
Ever wondered what is happening inside your SQL Server instance right now? sp_who, sp_who2 and sp_whoisactive all answer that question, at very different depths. The first ships documented, the second ships undocumented but better, and the third is a free community procedure that most working DBAs treat as the real answer. This post is the…
Written by
-
Silent Failures: The SQL Server Problems That Never Raise an Error
Twelve SQL Server failures that produce no error, no failed job and no alert, why each stays silent, and one script that finds them all.
Written by
-
Log and Filter sp_who2 Results in SQL Server
sp_who2 has no WHERE clause. Capture its output into a thirteen column table with INSERT … EXEC and it becomes queryable, including a logging table you can run on a schedule. Plus the two errors that stop most people, and the DMV to use instead.
Written by
-
Disable Change Data Capture in SQL Server
Turning Change Data Capture off for a database takes one command, sys.sp_cdc_disable_db. It disables every tracked table itself, then drops the cdc schema, the change tables and both CDC Agent jobs. Disable tables one at a time only when you want CDC to stay on for the rest, or when the database has a lot…
Written by
-
How to Enable Change Data Capture (CDC) in SQL Server
Change Data Capture (CDC) allows SQL Server to track inserts, updates, and deletes on selected tables by reading the transaction log and storing changes in system tables. From a DBA point of view, CDC is easy to enable but easy to underestimate. It adds background jobs, ongoing storage growth, and operational overhead that needs to…
Written by
-
How to Check if Query Store Is Enabled in SQL Server
A query slowed down after an upgrade, a restore or a plan change, and the first thing you need from Query Store is its history. That only exists if Query Store was on and writing: it can be off, on but read-only, or stuck in an error state, and nothing in the database tells you…
Written by
-
How to Check SQL Server Version
You need the exact version and build of a SQL Server instance: support is asking for it, a cumulative update is being planned, or an audit wants it in writing. SQL Server exposes it in several places, and they do not all answer the same question, so this post covers each one and when to…
Written by
-
Check When SQL Server Was Last Restarted
Knowing when SQL Server last restarted is one of the simplest checks a DBA can perform, and one of the most useful. It immediately answers questions around patching, failovers, configuration changes, and unexplained behaviour. Before assuming anything else, confirming uptime is always worth doing first. This post shows the most reliable way to check SQL…
Written by
-
Get Database File Names and Paths in SQL Server
⚡Run the query, then read the growth column first. A percentage step is the one to change today. After that, look for a data file and its log on the same drive, and any number in max_size_mb: a cap stops the file with free space still on the disk. A disk is filling up, a…
Written by
- Tune a Slow Query With Copilot in SSMS
- xp_readerrorlog: Read the SQL Server Error Log with T-SQL
- Cannot Drop Database Because It Is Currently in Use (Error 3702)
- Could Not Drop Login Because the User Is Currently Logged In (Error 15434)
- Set a Maximum Database File Size in SQL Server (MAXSIZE)
- SQL Server Activity Monitor in SSMS (and the Performance Dashboard)
- Backups & Recovery (18)
- DBA Scripts (154)
- High Availability (HA) (13)
- Installation & Configuration (60)
- Maintenance (25)
- Migration & Upgrades (14)
- Monitoring (10)
- Performance Tuning (38)
- Security (Encryption & Permissions) (25)
- Storage & Capacity (18)
- T-SQL Fundamentals (17)
- Troubleshooting (108)
- Wait Types (236)