DB24 LogoDB24 Docs

    Integrity Maintenance

    Last updated: November 23, 2026

    Integrity Maintenance

    Integrity maintenance runs DBCC CHECKDB against each eligible database to find physical corruption, logical inconsistencies and allocation errors. DB24 schedules the checks, picks the right type of check for each database, records the results and alerts you, so corruption shows up right away instead of sitting unnoticed in the SQL Server error log.

    New in 2026.4: you can schedule a lighter physical-only check on some weekdays and a full check on others. A minimum database size keeps small databases on full checks every time. DB24 also collects each database's last known good CHECKDB date, whether or not DB24 maintenance is enabled.


    Full and Physical-Only Checks

    CheckCommandWhat it covers
    FullDBCC CHECKDB ([db]) WITH NO_INFOMSGS, ALL_ERRORMSGS, DATA_PURITY, TABLERESULTSComplete physical and logical validation, including column value purity. Slow on large databases.
    Physical-onlyDBCC CHECKDB ([db]) WITH NO_INFOMSGS, ALL_ERRORMSGS, PHYSICAL_ONLY, TABLERESULTSPage, checksum and allocation validation. Much faster and lighter, but does not find logical errors.

    A common setup is a full check once or twice a week and physical-only checks on the other nights.


    Configuration in the Portal

    Go to Maintenance > DB24 Maintenance and select an instance (or use the batch view to update several instances at once). Changes require the Admin role.

    SettingDescription
    IntegrityTurns the integrity job on or off for the instance
    Integrity Start TimeWhen the job starts (HH:mm)
    Full check (DATA_PURITY) onWeekdays that run a full check
    Physical-only check (PHYSICAL_ONLY) onWeekdays that run a physical-only check
    Min. size for physical-only (GB)Databases whose data files use less space than this always get a full check, even on physical-only days. Default 10 GB. 0 turns the rule off
    • A weekday can only be in one of the two schedules. Selecting it in one removes it from the other.
    • At least one weekday must be selected across the two schedules.
    • The job runs on every day in either schedule. Days not in either schedule have no integrity run.

    Excluding databases. Under Maintenance > Exclusions, add the database with the Integrity category (integrity only) or the Maintenance category (all DB24 maintenance). Wildcards are supported.


    How a Run Works

    1. The mode is decided once, when the job starts. The weekday the job starts on decides the mode, so a run that continues past midnight keeps its mode.

    Start day is in…Mode
    Full scheduleFull
    Physical-only schedulePhysical-only
    Both (only possible if changed directly on the runtime)Full

    2. Each database gets its check type. On physical-only days, databases below the minimum size still get a full check. Larger databases get the physical-only check.

    3. Databases are processed in this order:

    1. Databases below the minimum size (they're fast)
    2. Databases never checked
    3. Oldest last known good CHECKDB first
    4. Largest first, if the dates are the same

    4. The maintenance window is checked before each database. When the window has closed, the remaining databases are skipped for tonight. A check that is already running is never interrupted. Because the most overdue databases go first, a database that didn't get its turn moves to the front of the queue on the next run.

    5. Disk space is checked before each database. If any volume holding the database's files is below the configured free space threshold, that database is skipped and the job moves on to the next one. Each volume is logged once per run.

    A database skipped for disk space or for the maintenance window isn't checked at all, so corruption could go undetected until the next successful run. DB24 logs a warning in both cases.


    Eligibility

    A database is included when all of the following apply:

    ConditionRule
    StateOnline
    AccessThe DB24 service account has access (HAS_DBACCESS() = 1)
    ExclusionsNot excluded with the Integrity or Maintenance category
    AG roleEnabled for the database's role (standalone, primary or secondary). See Advanced Configuration

    Last Known Good CHECKDB, With or Without DB24 Maintenance

    Every database stores the date of its last CHECKDB that finished without errors in its boot page (dbi_dbccLastKnownGood). The DB24 inventory collection (the DB24Housekeeping job) reads that value with DBCC DBINFO for every database on every monitored instance.

    This does not depend on DB24 integrity maintenance. If you run CHECKDB with your own jobs, Ola Hallengren's scripts or a third-party tool, DB24 still shows when each database last passed a check. Both full and physical-only checks update the date.

    The value is used in:

    • Maintenance > DBCC Status: one row per database with OK (≤ 3 days), Warning (4–7 days), Critical (> 7 days) or Never. Excluded and read-only databases are shown grey and are not counted as overdue
    • The Last Good DBCC column on the Databases report
    • AiQ scoring and the Monthly Brief integrity recommendation
    • The MCP tool get_dbcc_status

    In an availability group, a good check on any replica counts for all replicas, because the boot page is part of the database.


    Errors and Alerting

    DB24 separates two kinds of failure:

    Confirmed corruption. CHECKDB finishes and returns rows with a RepairLevel. The full DBCC output is stored in log.DBCCErrors and a critical warning is raised immediately.

    Execution failure. CHECKDB doesn't finish (memory pressure, a command error, the database going offline) and returns no corruption rows. A warning is raised, but it is categorised separately from confirmed corruption to avoid false alarms.

    Every database's outcome is written to the maintenance log (Maintenance > Logs > Integrity) with the exact command, start and end time, and any error. The notes column shows which mode was used and why, the database's used space, the threshold, the last good date and how many days it was overdue. For example:

    mode=FULL; reason=below_size_threshold; usedMb=2048; thresholdMb=10240; lastGood=2026-11-20 01:12:44; overdueDays=3;
    

    At the end of the run one summary line is logged with the number of databases checked, corrupt, failed, skipped and not run.


    Advanced Configuration

    These settings live in the runtime database DB24_Data on each instance. The portal settings above write to the same tables, so use the portal when you can.

    Table / settingDescription
    cfg.MaintenanceStart, StartClassID = 2Weekday bitmask for full checks
    cfg.MaintenanceStart, StartClassID = 3Weekday bitmask for physical-only checks. 0 after the upgrade, so nothing changes until you schedule physical-only days
    cfg.Global.MinDbSizeForPhysicalOnlyMbMinimum size for physical-only, in MB. Default 10240. 0 disables the rule
    cfg.Maintenance: RunMaintenanceIntegrityEnables integrity checks per role (DBHomeId 100 standalone, 1 AG primary, 2 AG secondary)
    cfg.Maintenance: BackupPreferredWhen 1, integrity checks also run for a role where RunMaintenanceIntegrity = 0 if that replica is the one taking backups. This keeps CHECKDB on the replica you back up from
    cfg.Exclusions, CategoryId 100 / 102Maintenance / Integrity exclusions