Share via


Constraints ("M" Programming Guide)

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

A constraint is a predicate or Boolean function that restricts the values allowed in a particular context. Constraints are commonly applied to fields and types. A constraint can be defined at the type level or on individual fields. Constraints are applied by using the where key word.

Constraints also occur inside computed values, when you specify a view using the select statement.

In This Section