Tag: Maintenance

  • DBA Scripts: Generate Database Integrity and Housekeeping Jobs

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. A Readable Generator for Integrity Checks and msdb Housekeeping If you’re already running Ola Hallengren’s maintenance solution, this won’t replace it, but the approach here might still be useful: a small, readable T-SQL generator that builds a housekeeping job framework as plain sp_add_job…

  • DBA Scripts: Generate Backup Jobs

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. A Readable Generator for Full Backups, Log Backups, and Cleanup If you’re already running Ola Hallengren’s maintenance solution, this won’t replace it, but the approach here might still be useful: a small, readable T-SQL generator that builds a backup job framework as plain…

  • Shrinking a SQL Server Database Causes Fragmentation: Measured, Not Just Stated

    How to Shrink SQL Server Database Files in Chunks already says it plainly in its common pitfalls: shrinking causes index fragmentation, every time. That’s correct, and worth taking on faith from someone who’s had to clean up after it. It’s more useful with a real number attached. This post runs the actual before/after: a lab…

  • DBA Scripts: Generate Maintenance Jobs

    This post has been split into a pillar and three focused posts, each generator script now has its own page with its own real bugs, Example Output, and Related Scripts, rather than three topics crammed into one long post. Start at the hub: SQL Server Maintenance Job Framework All three scripts, and the repo links,…

  • DBA Scripts: SQL Server Maintenance Job Framework

    Part of the DBA-Tools Project, in the Maintenance and Automation area. If you’re already running Ola Hallengren’s maintenance solution, this framework won’t replace it, but the approach might still be useful: three small, readable T-SQL generator scripts that build the same category of scheduled job framework, full and log backups, backup cleanup, DBCC CHECKDB, index…

  • DBA Scripts: Generate Index Maintenance Jobs

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks. A Readable Generator for Index Rebuilds and Statistics Updates If you’re already running Ola Hallengren’s maintenance solution, this won’t replace it, but the approach here might still be useful: a small, readable T-SQL generator that builds an index maintenance job framework as plain…

  • DBA Scripts: Get Maintenance Job Status

    🔧Part of the DBA-Tools Project, copy/paste SQL Server scripts and health checks.Related pillar: Maintenance & Automation A maintenance job that’s silently failing is one of the more dangerous states a SQL Server instance can be in, because everything looks normal from the outside. The database is online, queries run fine, and the index maintenance or…