Adding unique constraint
To add a unique constraint:
Procedure
- Log on to the MXDM.
-
In the Navigation tree pane, click
Database.
MXDM displays a list of available systems in My Systems.
-
Expand a selected system in the navigation tree.
List of catalogs for the selected system appears.
-
Click and expand the contents of a Catalog.
The list of schemas appears.
-
Expand a schema in the left pane.
The Tables folder appears.
- Expand the Tables folder and select a table in the left pane.
- Right-click the table and select Alter Table from the context menu.
-
Select
Add Unique Constraint.
Add Unique Constraint dialog appears.
- Select Let SQL/MX choose the name to generate the unique constraint name automatically, else explicitly provide a unique constraint name in the Name field.
- Select columns from the Columns Available grid and click Add to move them to the Constraint Columns grid.
- Click Remove to move back the columns to the Columns Available grid.
- Click OK to add unique constraint to the table, else click Cancel to discard the changes.