ALTER DATABASE SET Options
changes database set options (no row flow)
What changes
- Input
- catalog
- Output or change
- catalog: database set options
Syntax at a glance
ALTER DATABASE { database_name | CURRENT } SET { <option_spec> [ ,...n ] [ WITH <termination> ] }
Work example
A database option such as recovery model or read state needs a reviewed update.
Check backup impact, active sessions, application expectations, and the prior value before scheduling.
Check your work The required backup or access behavior follows the new option.
Open Microsoft Learn for full syntax, permissions, and details for your version.