Share via


How to: Delete Foreign Key Relationships

Delete a foreign key constraint when you want to remove the requirement to enforce referential integrity.

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.

To delete a foreign key constraint

  1. In Server Explorer, select the table with the constraint, and from the Database menu click Open Table Definition.

    The table opens in Table Designer.

  2. From the Table Designer menu, click Relationships.

  3. In the Foreign Key Relationships dialog box, select the relationship in the Selected Relationship list.

  4. Click the Delete button.

See Also

Concepts

Foreign Keys (Visual Database Tools)

Other Resources

Working with Constraints

Working with Relationships