My SQL Server 2016 error log kept saying ‘Disallowing page allocations for database due to insufficient memory in the resource pool’. What it means and the fix.
SQL Server Backup Compression: How Much Space It Saves
Backup compression needs only the COMPRESSION option in the BACKUP statement. This post backs up a demo database twice and compares the sizes and times. It also checks the restore, explains the error that mixing compressed and plain backups raises, and covers the costs.
SQL SERVER – System Function @@IDLE to Find System Ideal Time
Running @@IDLE returns a number that is hard to read. Here is what this system function measures and how to turn it into idle time you can understand.
How to Remove Database Mail History and Stop msdb Growing
Database Mail history stays in msdb until you delete it, so the sysmail tables can grow for years. This post measures the tables, then removes the history with the two supported procedures instead of direct deletes. It also covers a month by month loop for a big backlog and a schedule.
SQL SERVER – Msg 19062, Level 16, State 1. Could Not Create a Trace File. Error = 0x80070005
A stored procedure calling sp_trace_create failed with Msg 19062, could not create a trace file, Error 0x80070005. Here is what that code means and the fix.




