Author: Peter Whyte
-
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)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security Msg 15023 · Level 16 · State 5 User, group, or role ‘AppUser’ already exists in the current database. Msg 15023, Level 16, State 5 ⚡Do not drop the user. ALTER USER [name] WITH LOGIN = [name]; remaps it…
Written by
-
Cannot Open Database Requested by the Login (Errors 4060 and 4064)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security Msg 4060 / 4064 · Level 11 · State 1 Cannot open database “YourDb” requested by the login. The login failed. Login failed for user ‘DOMAIN\user’. Msg 4060, Level 11, State 1 ⚡Check three things in order: the database…
Written by
-
Cannot Open Backup Device: Operating System Error 5 (Access Is Denied)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Backup & Recovery Almost everyone meets this the first time they back up to a network share, and almost everyone spends the first ten minutes checking the wrong account. Msg 3201 · Level 16 · State 1 Cannot open backup…
Written by
-
A Connection Was Successfully Established, But Then an Error Occurred During Login
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security 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…
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
-
Compatibility Levels: What Actually Changes When You Bump It
“Bump the compatibility level after a migration” is standard advice, and Version Upgrade Readiness already tells you which databases are behind. What that advice usually skips is what the number actually controls, and one part of it is more counter-intuitive than most people assume. This post runs a real test on a lab database to…
Written by
-
SQL Server Management Studio (SSMS): The Complete Guide
SQL Server Management Studio is still the tool most production DBAs live in day to day, and it has changed more in the last couple of years than the previous decade. There is a new install and update model, a different default connection security posture, and enough quality-of-life settings buried in menus that most people…
Written by
-
SQL Server Collation: Case Sensitivity and the Cross-Database Trap
Get Collation Conflicts and Cross-Database Dependencies finds real collation mismatches, but assumes you already know what collation actually controls. This post covers the fundamentals directly: what changes with collation, a real case-sensitivity test, and the cross-database trap that script exists to catch. What Collation Actually Controls Collation determines two things for character data: sort order…
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
- DBA Scripts: Get Log Shipping Status
- SQL Server Row-Level Security: The Filter Does Not Stop Cross-Tenant Writes
- View the Definition of a Stored Procedure in SQL Server
- TempDB Is Full or Still Growing: Find What Is Using It, Right Now
- SQL Server Service Will Not Start: Error 17113, 17058, 1067 and Where the Real Reason Is
- How to Move TempDB Files in SQL Server
- Backups & Recovery (17)
- DBA Scripts (152)
- High Availability (HA) (13)
- Installation & Configuration (49)
- Maintenance (25)
- Migration & Upgrades (14)
- Monitoring (9)
- Performance Tuning (37)
- Security (Encryption & Permissions) (20)
- Storage & Capacity (16)
- T-SQL Fundamentals (15)
- Troubleshooting (94)
- Wait Types (235)