Category: Troubleshooting
-
Fix “Msg 207: Invalid Column Name” in SQL Server
Msg 207 invalid column name: the column is missing, misspelt, in another schema or table, or the query runs against a different database than you think.
Written by
-
Troubleshoot SQL Server Blocking, Step by Step
Blocking isn’t a bug, it’s SQL Server enforcing correctness: one session holds a lock, another wants a conflicting one, and it has to wait. Most blocking resolves in milliseconds and nobody notices. The problem is blocking that doesn’t resolve fast, a query queued behind a session that’s holding a lock far longer than it should,…
Written by
-
Reading and Fixing a SQL Server Deadlock
Msg 1205 is SQL Server refusing to let two sessions wait on each other forever. Pull the deadlock graph from system_health, read it, and stop it recurring.
Written by
-
DBA Scripts: Extended Events Tracing
Ask most DBAs “what’s actually connecting to this server” or “is this database still in use” and you’ll get an opinion, not an answer. SQL Server doesn’t track any of this for you by default, no login history worth trusting, no record of which stored procedures actually get called, no memory of what you traced…
Written by
-
CREATE FILE Encountered Operating System Error (Error 5123)
SQL Server error 5123, CREATE FILE encountered operating system error. Why the service account is refused and how to fix the folder permissions.
Written by
-
Database in Recovery Pending: Cannot Be Opened (SQL Server Error 945)
SQL Server error 945, database cannot be opened due to inaccessible files. How to find which file stopped it and bring the database back online.
Written by
-
CREATE DATABASE Permission Denied (Error 262)
SQL Server error 262, CREATE DATABASE permission denied. Which permission is actually missing, who can grant it, and the least-privilege fix.
Written by
-
SQL Server Transaction Log Full
Transaction log full (error 9002)? Check log_reuse_wait_desc first. It names what is holding the log, and the fix follows from that value.
Written by
-
SQL Server: The Database Is in Single User Mode (Fix)
You try to connect to a database and get: Msg 924 · Level 14 · State 1 Database ‘YourDatabase’ is already open and can only have one user at a time. Single-user mode allows one connection, and something else already has it: SQL Server Agent, an application, even an Object Explorer window in SSMS. From…
Written by
-
Hidden Log Performance Problem: High VLF Counts
VLF count is one of those checks that doesn’t show up in most performance reviews, doesn’t raise an alert, and doesn’t slow down any single query you can point to. What it does is make the work that reads the transaction log take longer than it should: database startup, crash recovery, restores, and redo on…
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)