Author: Peter Whyte
-
Could Not Open a Connection to SQL Server: Error 53 and Named Pipes Error 40
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Server & Configuration The client could not find a SQL Server at the name you typed. Nothing reached the instance, so no login was checked and its error log has nothing to show. Check the name first, then the port,…
Written by
-
SSPI Handshake Failed in SQL Server (Error 17806)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security Windows authentication reached SQL Server and Windows refused the account before any login was checked. The error log gets 17806, the client usually gets 18452, and no SQL Server setting will fix it. Error 17806 · Severity 20 · …
Written by
-
Violation of PRIMARY KEY Constraint and Cannot Insert Duplicate Key (Errors 2627 and 2601)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Performance & Troubleshooting Msg 2627 / 2601 · Level 14 · State 1 Violation of PRIMARY KEY constraint ‘PK_ErrDemoPk’. Cannot insert duplicate key in object ‘dbo.ErrDemoPk’. The duplicate key value is (1). Msg 2627, Level 14, State 1 ⚡Half of…
Written by
-
The Server Principal Is Not Able to Access the Database (Error 916)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security Msg 916 · Level 14 · State 2 The server principal “ErrDemo916” is not able to access the database “DemoDatabase” under the current security context. ⚡Check the database, not the login: the named database has no user mapped to…
Written by
-
Login Failed: The Account Is Disabled (Error 18470)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security Msg 18470 · Level 14 · State 1 Login failed for user ‘ErrDemoDisabled’. Reason: The account is disabled. ⚡Enable is one line; the real question is why it was off. sys.server_principals modify_date tells you when it changed, and the…
Written by
-
Cannot Insert the Value NULL Into Column (Error 515)
SQL Server error 515 names a NULL you may never have written. Leaving a NOT NULL column out of the insert produces the same message, and a default fixes that case but not an explicit NULL.
Written by
-
Login Failed: The Login Is From an Untrusted Domain (Error 18452)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Security Msg 18452 · Level 14 · State 1 Login failed. The login is from an untrusted domain and cannot be used with Integrated authentication. ⚡Start at the client, not the domain: whoami shows whether it is even a domain…
Written by
-
Could Not Allocate Space Because the Filegroup Is Full (Error 1105)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Storage & Capacity Msg 1105 · Level 17 · State 2 Could not allocate space for object ‘dbo.Orders’.’PK_Orders’ in database ‘YourDb’ because the ‘PRIMARY’ filegroup is full due to lack of storage space or database files reaching the maximum allowed…
Written by
-
A Read of the File Succeeded After Failing (Error 825, the Read-Retry Warning)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Backup & Recovery Msg 825 · Level 10 · State 2 Error: 825, Severity: 10, State: 2. A read of the file ‘D:\Data\YourDb.mdf’ at offset 0x00000c46e58000 succeeded after failing 1 time(s) with error: incorrect checksum (expected: 0x2f8a1b3c; actual: 0x9d4e7a11). Additional…
Written by
-
Lock Request Time Out Period Exceeded (Error 1222)
🚨Part of the SQL Server Errors series, the exact messages and what actually causes them.In: Blocking & Locking Msg 1222 · Level 16 · State 51 Lock request time out period exceeded. ⚡Find the blocker, not the victim: sys.dm_exec_requests shows who holds the lock, and the classic culprit is a session sleeping with an open…
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)