Tag: msdb

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

sysjobhistory gains a row for every SQL Server Agent job step, so busy instances outgrow loose history limits fast. Set sensible limits in Agent properties and purge old rows nightly with sp_purge_jobhistory.

Read article →
How to Manually Remove Log Shipping
16 May 2018 · 6 min read

How to Manually Remove Log Shipping

To remove log shipping by hand when SSMS cannot, run three system stored procedures in order: remove the secondary reference on the primary, delete the primary configuration, then clean up the secondary server. This clears orphaned log shipping metadata safely after a broken restore or a lost server.

Read article →
How to Resolve the SSIS Subsystem That Failed to Load
15 May 2018 · 6 min read

How to Resolve the SSIS Subsystem That Failed to Load

After restoring msdb from an old server, SQL Server Agent can no longer find the SSIS subsystem DLL. Here is how to fix it in minutes.

Read article →
How to Find SQL Agent Tasks and Schedules
15 May 2018 · 8 min read

How to Find SQL Agent Tasks and Schedules

Query SQL Server Agent jobs and schedules directly from msdb using a single T-SQL script. Identify overlapping jobs, disabled tasks and performance issues fast.

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

How to Fix Very Large MSDB Database

A very large MSDB is almost always history that never gets cleaned up, usually maintenance plan logs. Find the biggest tables, clear the old history, shrink the files once, rebuild indexes, then fix the cleanup job so MSDB stays under 1GB.

Read article →

SQL Server insights, monthly.

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