Category: Troubleshooting
-
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. The errorMsg 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 these are…
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. The errorMsg 916 · Level 14 · State 2 The server principal “ErrDemo916” is not able to access the database “DemoDatabase” under the current security context. Msg 916, Level 14, State 2 ⚡Check the database, not the login: the named…
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. The errorMsg 18470 · Level 14 · State 1 Login failed for user ‘ErrDemoDisabled’. Reason: The account is disabled. Msg 18470, Level 14, State 1 ⚡Enable is one line; the real question is why it was off. sys.server_principals modify_date tells…
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. The errorMsg 18452 · Level 14 · State 1 Login failed. The login is from an untrusted domain and cannot be used with Integrated authentication. Msg 18452, Level 14, State 1 ⚡Start at the client, not the domain: whoami shows…
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. The errorMsg 1105 · Level 17 · State 2 Could not allocate space for object ‘dbo.Orders’.’PK_Orders’ in database ‘YourDb’ because the ‘PRIMARY’ filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files…
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. The errorMsg 825 · Level 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 messages in the SQL Server error log and…
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. The errorMsg 1222 · Level 16 · State 51 Lock request time out period exceeded. Msg 1222, Level 16, State 51 ⚡Find the blocker, not the victim: sys.dm_exec_requests shows who holds the lock, and the classic culprit is a session…
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. The errorMsg 15023 · Level 16 · State 1 User, group, or role ‘AppUser’ already exists in the current database. Msg 15023, Level 16, State 1 ⚡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. The errorMsg 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. 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. The errorMsg 3201 · Level 16 · State 1 Cannot open backup device ‘X’.…
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 (148)
- High Availability (HA) (12)
- Installation & Configuration (38)
- Maintenance (24)
- Migration & Upgrades (13)
- Monitoring (6)
- Performance Tuning (35)
- Security (Encryption & Permissions) (19)
- Storage & Capacity (14)
- T-SQL Fundamentals (11)
- Troubleshooting (45)
- Uncategorized (1)
- Wait Types (235)
Latest Posts
- The Database Principal Owns a Schema in the Database and Cannot Be Dropped (Error 15138)
- The Backup Set Holds a Backup of a Database Other Than the Existing Database (Error 3154)
- The Database Could Not Be Exclusively Locked to Perform the Operation (Error 5030)
- Conversion Failed When Converting the varchar Value to Data Type int (Error 245)
- The DELETE Statement Conflicted With a FOREIGN KEY Constraint (Error 547)
- Invalid Object Name in SQL Server (Error 208)
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)