DROP RULE
removes a legacy bound object
What changes
- Input
- catalog
- Output or change
- bound default or rule object (deprecated)
Syntax at a glance
DROP RULE [ IF EXISTS ] { [ schema_name . ] rule_name } [ , ...n ] [ ; ]
Work example
A legacy bound rule is removed after columns gain CHECK constraints.
Inventory every rule binding and compare accepted values with the replacement constraints.
Check your work No column or alias type still depends on the rule.
Open Microsoft Learn for full syntax, permissions, and details for your version.