Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

This property page contains a set of properties for check constraints attached to the tables in a Microsoft SQL Server database. Properties applying to unique constraints appear on the Indexes/Keys property page.

Table Name

Shows the name of the selected table in your diagram. If more than one table is selected in your diagram, only the name of the first table is visible.

Selected Constraint

Shows the name of the constraint whose properties you are viewing. To view the properties of a different constraint, select a constraint from the drop-down list.

New

Choose this button to create a new constraint for the selected database table. Enter properties for the constraint.

Delete

Choose this button to remove the selected constraint from the database.

Constraint name

Shows the name of the constraint whose properties you are viewing. Use this control to modify the name of the constraint.

Constraint expression

Shows the SQL syntax of the selected check constraint. For new constraints, you must enter the SQL syntax before exiting this box. You can also edit existing check constraints.

Validation Text

(SQL Server 2000 only.) Shows the text that is displayed to the user whenever a row that violates the constraint is entered.

Check existing data on creation

When selected, this option ensures that all data that exists in the table before the constraint was created is verified against the constraint.

Enforce constraint for replication

Enforces the constraint when the table is replicated into a different database.

Enforce constraint for INSERTs and UPDATEs

Enforces the constraint when data is inserted into or updated in the table.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×