Tag: SQL Server Errors
-
SQL Server Error Severities Explained
⚡Read the Level before you read the message. 0 to 10 is informational, 11 to 16 means the statement is wrong and the server is fine, 17 to 19 is a resource limit or an engine fault and it is yours to investigate, and 20 and above has ended the task and usually the connection,…
Written by
-
SQL Server: ALTER DATABASE SET ENABLE_BROKER Taking a Long Time (Fix)
After a recent Availability Group failover, Database Mail stopped sending emails. On investigation, the underlying cause was Service Broker not being enabled on msdb, the system database Database Mail runs out of. Enabling it should be instant. Instead the statement sat there, and this is what it was waiting on. To confirm the status, I…
Written by
-
SQL Server: Ad hoc Update to System Catalogs is Not Supported (Fix)
Ad hoc update to system catalogs is not supported when RECONFIGURE runs: a leftover allow updates setting is the cause. The fix, and an instance-wide check.
Written by
-
SSMS Certificate Chain Not Trusted Error (Trust Server Certificate Fix)
SSL Provider · error: 0 A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 – The certificate chain was issued by an authority that is not trusted.) ⚡Tick Trust server certificate and connect. In the SSMS Connect dialog it sits under Encryption…
Written by
-
Database Cannot Be Opened – It Is in the Middle of a Restore
You may see this error when trying to access a database during or after a restore: Msg 927 · Level 14 · State 2 Database ‘YourDb’ cannot be opened. It is in the middle of a restore. ⚡Run the first query below before you touch anything. A row in sys.dm_exec_requests means a restore is still…
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)