Modifying a Foreign Key

See Also

Modify the foreign key side of a relationship if you want to change which columns are related to columns in the primary key table.

To modify a foreign key

  1. In your database diagram, select the relationship line that you want to modify.

  2. Right-click the table and select Properties.

  3. Choose the Relationships tab.

  4. Select the relationship from the Selected relationship list.

  5. In the Foreign key table column, expand the list in the first row.

  6. Select a different table column from the list. The foreign key column must match the data type and size of the primary key column, with these exceptions:

Any changes you make to the relationship’s properties take effect as soon as you move outside the grid in the property pages. The constraint is updated in the database when you save your table or diagram.

Note   Modifying a relationship in a database diagram marks both of the related tables as modified. Consequently, each table will also be marked as modified in any other diagrams in which it appears.