SQL Flow Field Guide

ALTER DATABASE HADR

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes database hadr (no row flow)

What changes

Input
catalog
Output or change
catalog: database hadr

Syntax at a glance

ALTER DATABASE database_name SET HADR { { AVAILABILITY GROUP = group_name | OFF } | { SUSPEND | RESUME } } [;]

Work example

A database must join or leave an availability group during a reviewed operation.

Check backup chain, database state, replica synchronization, and failover ownership before the change.

Check your work The database has the intended group membership and reaches the expected synchronization state.

Open Microsoft Learn for full syntax, permissions, and details for your version.