To modify a CHECK constraint using a database diagram
To | Follow these steps |
---|---|
Edit the constraint expression | Type the new expression in the Constraint expression box. |
Rename the constraint | Type a new name in the Constraint name box. Make sure that your new name doesn’t duplicate a name in the Selected constraint list. |
Apply the constraint to existing data | Select the Check existing data on creation option. |
Disable the constraint when new data is added to the table or when existing data is updated in the table | Clear the Enable constraint for INSERT and UPDATE option. |
Disable the constraint when the table is replicated in another database | Clear the Enable constraint for replication option. |
Creating and Modifying CHECK Constraints | How to open a database diagram |