Creating a unique constraint or primary key constraint to ensure that
no two rows in a table have the same values in the specified columns.
A primary key is a column or combination of columns that uniquely identifies a
row. It cannot be NULL and it must have a unique index. A table with a primary key is
eligible for joins with foreign keys in other tables. Think of the primary key table as
the master table in a master-detail relationship. There can be many such master-detail
groups in a database.
- In the left pane of the Administration Console, expand , then choose one of the following:
- Click the Name field of the table, then click the drop-down arrow and select
Properties.
- In the left pane, click Index, then click the drop-down
arrow and select Unique Constraint.
- On the Name screen:
- Specify a name for the unique constraint or primary key.
- Click Unique Constraint or Primary
key.
- (Optionally) Click Make supporting index clustered.
- On the Columns screen, select the columns to include in the unique constraint
or primary key.
- On the Database Segment screen, select a segment on which to place the unique
constraint or primary key.
- On the Space Management screen:
- (Optional) Specify a fill factor percentage.
- (Optional) Specify the maximum number of rows per page for the index.
- (Optional) Specify the ratio of empty pages to filled pages to provide for
expansion.
- (Optional) Click Summary to review your selected
options.
- Click Finish.