Add a SQL Azure Validation Rule
Add validation rules to your SQL Azure data model to enforce the business rules of your organization. The rules that you create can establish a value, a list of values, or a range of acceptable values to store in a table, column, entity, or attribute.
To add a validation rule
The SQL Azure Validation Rule Editor opens.
A new validation rule with a default name is added to the Navigation Grid.
Specifies the physical name of the validation rule. You can change the name in this field.
Specifies the validation rule type. You can select one of the following options:
Specifies to use an expression to create a server-side validation expression. This expression is entered in the General tab.
Specifies to use minimum and maximum values. The values are specified in the General tab.
Specifies to create a set of valid values. The values are specified in the General tab.
Specifies that the validation rule only applies to a physical model.
Lets you enter an expression in the correct syntax for the selected server to create a server-side validation expression.
Specifies whether to automatically enclose each value in a list of valid values in a single quotation mark. Use the drop-down to specify Yes or No.
Specifies whether to invert the expression. Inverting an expression includes the word NOT in the expression. Select the check box to enable this option. For example, if the expression is BETWEEN 5 AND 10, and you select the check box, the expression is changed to NOT BETWEEN 5 AND 10.
Lets you enter a minimum value.
Lets you enter a maximum value.
Displays the expression in the correct syntax using the properties you specified, to create a server-side validation expression.
Specifies whether to automatically enclose each value in a list of valid values in a single quotation mark. Use the drop-down to specify Yes or No.
Specifies whether to invert the expression. Inverting an expression includes the word NOT in the expression. Select the check box to enable this option. For example, if the expression is BETWEEN 5 AND 10, and you select the check box, the expression is changed to NOT BETWEEN 5 AND 10.
Identifies the valid values. In addition to sorting, creating, deleting and reordering valid values, you can use the toolbar to import valid values.
Displays the expression in the correct syntax using the properties you specified, to create a server-side validation expression.
The validation rule is added and the SQL Azure Validation Rule Editor closes.
Copyright © 2013 CA.
All rights reserved.
|
|