CREATE DEFAULT
defines a legacy bound object
What changes
- Input
- catalog
- Output or change
- bound default or rule object (deprecated)
Syntax at a glance
CREATE DEFAULT [ schema_name . ] default_name AS constant_expression [ ; ]
Work example
A legacy database still depends on a separately bound default object.
Inventory every binding and plan a reviewed move to a column DEFAULT constraint before adding a new dependency.
Check your work The migration preserves each column's value when an insert omits that column.
Open Microsoft Learn for full syntax, permissions, and details for your version.