Udostępnij za pośrednictwem


How to: Delete Foreign Key Relationships (Visual Database Tools)

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

To delete a foreign key constraint

  1. In Object Explorer, right-click the table with the constraint, and click Design (Modify in SP1 or earlier).

    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 KEY Constraints

Other Resources

Working with Constraints (Visual Database Tools)
Working with Relationships (Visual Database Tools)

Help and Information

Getting SQL Server 2005 Assistance