Delete Foreign Key Relationships
SQL Server 2012
You can delete a foreign key constraint in SQL Server 2012 by using SQL Server Management Studio or Transact-SQL. Deleting a foreign key constraint removes the requirement to enforce referential integrity.
In This Topic
-
Before you begin:
-
To delete a foreign key constraint, using:
To delete a foreign key constraint
-
In Object Explorer, connect to an instance of Database Engine.
-
On the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute.
USE AdventureWorks2012; GO ALTER TABLE dbo.DocExe DROP CONSTRAINT FK_Column_B; GO
For more information, see ALTER TABLE (Transact-SQL).
