Category: Troubleshooting
-
RESTORE Is Terminating Abnormally (Errors 3013 and 3241)
3013 is never the cause, it is the last line of a failed restore. Five restore failures reproduced in a container, five different real errors above it, and three of them had nothing wrong with the backup file.
Written by
-
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)
This is a safety check, not a corruption. There is a database called Sales on this instance, your backup file also contains a database called Sales, and SQL Server can tell they are not the same database.
Written by
-
The Database Could Not Be Exclusively Locked to Perform the Operation (Error 5030)
Msg 5030 means another connection has the database open.
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)
The message names the exact value that broke, which is the useful part.
Written by
-
The DELETE Statement Conflicted With a FOREIGN KEY Constraint (Error 547)
Read the message before you touch anything, because it names the table and column that is in the way.
Written by
-
Invalid Object Name in SQL Server (Error 208)
The table almost always exists. What has gone wrong is the name was resolved in a context you did not expect, and there are only four contexts that matter: the database you are connected to, the
Written by
-
The Filegroup Cannot Be Removed Because It Is Not Empty (Error 5042)
SQL Server error 5042 means something still lives on the filegroup, often an index rather than the table you were thinking of. How to find it, move it, empty the files and remove it in the right order.
Written by
-
Kerberos vs NTLM in SQL Server: Best Practices
There are 2 ways in: a linked server failing as NT AUTHORITY\ANONYMOUS LOGON, and the discovery that an estate everyone assumed was on Kerberos is running on NTLM. Both are the same question, and one query answers it. ⚡Run one query: auth_scheme in sys.dm_exec_connections says KERBEROS or NTLM per connection. NTLM is not an error…
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)