SQL Flow Field Guide

ALTER DATABASE

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

changes database (no row flow)

What changes

Input
catalog
Output or change
catalog: database

Syntax at a glance

ALTER DATABASE { database_name | CURRENT } { MODIFY NAME = new_database_name | COLLATE collation_name | <file_and_filegroup_options> | SET <option_spec> [ ,...n ] [ WITH <termination> ] } [;]

Work example

A database needs a planned change to an option, file, or state.

Record the current setting, dependent features, lock impact, rollback value, and maintenance window.

Check your work The new database state matches the request and application health remains normal.

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