# olahallengren/sql-server-maintenance-solution

SQL Server Maintenance Solution

Repository: https://github.com/olahallengren/sql-server-maintenance-solution
Canonical: https://ross.abutalabs.com/products/sql-server-maintenance-solution
Homepage: https://ola.hallengren.com
Language: TSQL
License: MIT
License Family: permissive
Topics: sqlserver
Last push: 2026-08-23T12:49:17+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3376, "days_push": 10, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3466, forks 888 (observed 2026-08-28T04:08:05.785735+00:00)

## What it is
A set of T-SQL stored procedures (DatabaseBackup, DatabaseIntegrityCheck, IndexOptimize) plus SQL Agent jobs for backing up, integrity-checking, and maintaining indexes and statistics on Microsoft SQL Server. It is the de facto industry-standard maintenance solution, supporting SQL Server 2017-2025 and Azure SQL.

## Use cases
- schedule sql server backups
- run dbcc checkdb integrity checks on all databases
- rebuild and reorganize indexes and update statistics
- automate sql server database maintenance jobs
- maintain azure sql database indexes and statistics
- log and monitor maintenance command execution

## When to choose
- you administer SQL Server 2017-2025 or Azure SQL and need reliable, battle-tested backup and maintenance automation
- you want fine-grained options for backup, integrity check, and index maintenance in mission-critical environments

## When to avoid
- you use a database engine other than Microsoft SQL Server
- you need a GUI-based maintenance tool rather than T-SQL scripts and SQL Agent jobs

## Facets
- artifact type: library
- maturity: stable
- function: database, backup, scheduling, logging, developer-tools
- domain: databases, self-hosted
- platform: windows, cloud, self-hosted
- tags: sql-server, tsql, database-maintenance, dbcc, index-maintenance, stored-procedures, azure-sql, devops, automation

## Member repositories
- olahallengren/sql-server-maintenance-solution (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.785735+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:36:51.627407+00:00, confidence not recorded.
  - readme: https://github.com/olahallengren/sql-server-maintenance-solution (fetched 2026-08-28T04:08:05.785735+00:00, sha 752e8625a32a)
  - homepage: https://ola.hallengren.com (fetched 2026-08-29T09:30:42.747421+00:00, sha 852d7d6971c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
