Tag: database maintenance

SQL Server insights from 25+ years in the field

Performance tips, security advisories, health check findings, and industry analysis. Practical, technically accurate, no fluff.

How to Fix a Very Large MSDB Database in SQL Server: A Practical Cleanup Guide
21 Sep 2026 · 6 min read

How to Fix a Very Large MSDB Database in SQL Server: A Practical Cleanup Guide

Discover why MSDB balloons to 50GB or more and how to reduce it to under 100MB using built-in SQL Server stored procedures and retention policies.

Read article →
How to Fix a Very Large MSDB Database in SQL Server: A Comprehensive Cleanup Guide
3 Sep 2026 · 6 min read

How to Fix a Very Large MSDB Database in SQL Server: A Comprehensive Cleanup Guide

MSDB bloat is a common SQL Server problem. This guide shows you how to identify the cause, clean up the data, and prevent it from growing back.

Read article →
Taming sysjobhistory: Strategies for Managing SQL Server Agent History Growth
27 Jul 2026 · 7 min read

Taming sysjobhistory: Strategies for Managing SQL Server Agent History Growth

SQL Server Agent job history accumulates indefinitely by default. Here is how to measure, control, and purge sysjobhistory before it becomes a production problem.

Read article →
Update all DB growth parameters to defined increments
27 May 2021 · 6 min read

Update all DB growth parameters to defined increments

Default SQL Server auto-growth settings cause VLF fragmentation and autogrowth wait events. This script analyses every database and generates the correct ALTER DATABASE statements automatically.

Read article →
Microsoft Releases Cumulative Update 7 for SQL Server 2019, Including Important Fixes.. BUT…
4 Sep 2020 · 6 min read

Microsoft Releases Cumulative Update 7 for SQL Server 2019, Including Important Fixes.. BUT…

Microsoft released then quickly pulled Cumulative Update 7 for SQL Server 2019 after a critical defect surfaced. Here is what was fixed, what went wrong, and what it means for your patching process.

Read article →
SQL Server 2019 Cumulative Update 5: Important Fixes and Limited Documentation
23 Jun 2020 · 6 min read

SQL Server 2019 Cumulative Update 5: Important Fixes and Limited Documentation

SQL Server 2019 CU5 delivers critical fixes including a database corruption bug and scalar UDF inlining issues, but incomplete KB documentation means you should assess carefully before deploying.

Read article →
Recompile All SQL Server Stored Procedures with this Script
15 May 2018 · 5 min read

Recompile All SQL Server Stored Procedures with this Script

Recompile all stored procedures in a SQL Server database with a single script. Refresh stale execution plans after schema or statistics changes without dropping any objects.

Read article →
SQL Server DMV Query to Output Index Fragmentation by Database / Table
15 May 2018 · 6 min read

SQL Server DMV Query to Output Index Fragmentation by Database / Table

Learn how to query SQL Server index fragmentation using DMV views and identify which indexes need rebuilding or reorganising to restore query performance.

Read article →
How to Dynamically Backup and Compress User Databases (SQL 2008)
15 May 2018 · 6 min read

How to Dynamically Backup and Compress User Databases (SQL 2008)

Stop updating maintenance plans every time a database is added or dropped. This stored procedure dynamically discovers and backs up all user databases with compression enabled.

Read article →
How to update DB File Growth Settings for ALL Databases at the same time
15 May 2018 · 4 min read

How to update DB File Growth Settings for ALL Databases at the same time

Running with SQL Server's default autogrowth settings is quietly hurting your performance. Learn how to bulk-update file growth settings across all databases using a single T-SQL script.

Read article →
How to Fix Very Large MSDB Database
15 May 2018 · 6 min read

How to Fix Very Large MSDB Database

A bloated MSDB database can cause maintenance jobs to fail and monitoring alerts to fire. Learn how to identify the cause and fix it safely.

Read article →
When’s the Last Time you Serviced your SQL Servers?
14 May 2018 · 6 min read

When’s the Last Time you Serviced your SQL Servers?

Most SQL Server problems build quietly over months before anything breaks. Find out what regular maintenance covers and why your environment needs it.

Read article →

SQL Server insights, monthly.

Performance tips, security advisories, and industry analysis. No fluff, no spam.