Category: Troubleshooting
-
A Read of the File Succeeded After Failing (Error 825, the Read-Retry Warning)
Error 825 means a read failed and then succeeded on retry. The query worked, which is why it gets missed. Treat it as an early storage warning.
Written by
-
Lock Request Time Out Period Exceeded (Error 1222)
Error 1222 lock request time out period exceeded: find the blocking session, and why SSMS dialogs in Object Explorer hit it so often.
Written by
-
Column Name or Number of Supplied Values Does Not Match (Error 213)
SQL Server error 213 means the shape of your insert does not match the table. The four causes, why naming columns does not help INSERT … EXEC, and why TRY/CATCH will not catch it.
Written by
-
User, Group or Role Already Exists in the Current Database (Error 15023)
Error 15023 after a restore: the database user already exists but is orphaned from its login. How to find orphaned users and map them back.
Written by
-
Cannot Open Database Requested by the Login (Errors 4060 and 4064)
Errors 4060 and 4064 look like login failures, but the password is fine. Check the database is there and online, then the login to user mapping.
Written by
-
Cannot Open Backup Device: Operating System Error 5 (Access Is Denied)
Cannot open backup device, Msg 3201 with OS error 5: the SQL Server service account cannot write to the backup path. How to check and fix the permissions.
Written by
-
A Connection Was Successfully Established, But Then an Error Occurred During Login
The connection reached the server’s port and then died before the login was ever read, so the password is not the problem and there will be no 18456 in the error log. TCP Provider · error: 0 A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider:…
Written by
-
SQL Server Errors: The Complete Guide
Every entry here is a message somebody pasted into a search box while something was broken. This page exists to get you from that message to the cause quickly, which is a different job from explaining what SQL Server errors are in general. Three Steps From Message to Cause 01 Get the real message The…
Written by
-
SQL Server Collation: Case Sensitivity and the Cross-Database Trap
A WHERE clause that matches rows it should not, or a join that worked yesterday and now fails with Msg 468 after a restore: both come down to collation. The quick fixes: add COLLATE SQL_Latin1_General_CP1_CS_AS to a comparison to make it case sensitive, and declare temp table text columns with COLLATE DATABASE_DEFAULT to stop the…
Written by
-
SQL Server Isolation Levels (and When to Reach for RCSI)
Reading and Fixing a SQL Server Deadlock and Troubleshoot SQL Server Blocking both point at isolation level as part of the fix without covering what the levels actually are. This post fills that gap: what each isolation level trades off, what Read Committed Snapshot Isolation (RCSI) actually changes, and a real check of where this…
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)