Author: Peter Whyte
-
Insufficient System Memory and Memory Grant Timeouts (Errors 701 and 8645)
701 is the server unable to find memory at all. 8645 is the memory existing and being held by someone else. Neither one means buy more RAM, and cumulative wait stats will mislead you about both.
Written by
-
The Backup Set Holds a Backup of a Database Other Than the Existing Database (Error 3154)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them. Msg 3154 · Level 16 · State 4 The backup set holds a backup of a database other than the existing ‘Sales’ database. Msg 3154, Level 16, State 4 RESTORE DATABASE is terminating abnormally. ⚡Restore alongside rather than over the…
Written by
-
The Database Could Not Be Exclusively Locked to Perform the Operation (Error 5030)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them. Msg 5030 · Level 16 · State 2 The database could not be exclusively locked to perform the operation. Msg 5030, Level 16, State 2 ⚡Never end a session with the database still in SINGLE_USER. An application pool takes the…
Written by
-
Incorrect Syntax Near in SQL Server (Error 102)
Msg 102 usually is not a typo. If the same statement runs on one database and fails on another, the parser grammar is chosen by compatibility level, not by the version of the instance.
Written by
-
Conversion Failed When Converting the varchar Value to Data Type int (Error 245)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them. Msg 245 · Level 16 · State 1 Conversion failed when converting the varchar value ‘N/A’ to data type int. ⚡Quote the literal first. int outranks varchar, so an unquoted number makes SQL Server convert the whole column instead of…
Written by
-
The DELETE Statement Conflicted With a FOREIGN KEY Constraint (Error 547)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them. Msg 547 · Level 16 · State 0 The DELETE statement conflicted with the REFERENCE constraint “FK_OrderLines_Orders”. The conflict occurred in database “Sales”, table “dbo.OrderLines”, column ‘OrderId’. ⚡Query sys.foreign_keys before you fix anything. SQL Server reports one blocking constraint at…
Written by
-
Invalid Object Name in SQL Server (Error 208)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them. Msg 208 · Level 16 · State 1 Invalid object name ‘Orders’. ⚡Run SELECT DB_NAME(), SCHEMA_NAME() before anything else. Four contexts produce this error and three of them are about where you are sitting, not whether the object exists. The…
Written by
-
DBA Scripts: Migration and Deployment
🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. A SQL Server migration fails in two places: before it starts, when nobody checked whether the workload even fits the target, and after it finishes, when logins don’t match, users are orphaned, and the first Monday morning proves the move wasn’t as done…
Written by
-
DBA Scripts: SQL Server Change Management
🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.In: Migration & Deployment Most SQL Server content covers how to do the work. This covers how to get permission to do it, prove it was safe before you started, and undo it if it goes wrong. That is the part nobody writes about,…
Written by
-
Windows Server OS Upgrade Runbook for SQL Server
🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.In: Migration & Deployment Upgrading the operating system underneath SQL Server is usually driven by someone else: a support deadline, a security policy, a hardware refresh. That does not make it someone else problem, because SQL Server is the thing that will be blamed…
Written by
Start Here
- DBA Scripts: The Complete Guide
- Run a Full Health Check
- DBA Scripts & Tools
- SSMS: The Complete Guide
- SQL Server Errors: The Complete Guide
- Wait Types Library
The Pillars
Blog Categories
- Backups & Recovery (16)
- DBA Scripts (151)
- High Availability (HA) (12)
- Installation & Configuration (38)
- Maintenance (24)
- Migration & Upgrades (14)
- Monitoring (7)
- Performance Tuning (35)
- Security (Encryption & Permissions) (20)
- Storage & Capacity (14)
- T-SQL Fundamentals (11)
- Troubleshooting (55)
- Wait Types (235)
Latest Posts
- Cannot Execute As the Database Principal (Error 15517)
- Silent Failures: The SQL Server Problems That Never Raise an Error
- SQL Server Login Migration: What Gets Silently Left Behind
- CREATE USER WITHOUT LOGIN vs Contained Database Users
- The sqldba MCP Server: Give Your AI Assistant a Verified SQL Server Reference
- Cannot Resolve the Collation Conflict (Error 468)
Blog Tags
Access (4) Always On Availability Groups (4) Auditing (7) Backups (6) Blocking (4) Blocking Locking (6) Collectors (7) Database Backups & Recovery (8) Database Backups and Recovery (5) Database Maintenance (7) DBA Tools (24) Disk Space (5) Error Log (3) Extended Events (8) Features (6) High Availability (6) Indexes (7) Installation (7) Inventory (8) Maintenance (6) Migration (14) Monitoring (27) Performance (21) Performance Troubleshooting (9) PowerShell (4) Query Behaviour (5) Security (10) 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 (10) Temp DB (3) Tracing (7) Transaction Logs (4) Troubleshooting (24) Windows Server (4)