This will let you drop a specific foreign key constraint based on tablename + column name
After trying out the other answers I just had a poke around in the system tables until I found something likely looking.
The one you want is Constraint_Column_Usage which according to the docs Returns one row for each column in the current database that has a constraint defined on the column.
I've joined it to sys.objects to just get foreign keys.
In a procedure (this borrows from the other answers. cheers guys!):
Create Proc yourSchema.dropFK(@SchemaName NVarChar(128), @TableName NVarChar(128), @ColumnName NVarChar(128)) as Begin DECLARE @ConstraintName nvarchar(128) SET @ConstraintName = ( select c.Constraint_Name from Information_Schema.Constraint_Column_usage c left join sys.objects o on o.name = c.Constraint_Name where c.TABLE_SCHEMA = @SchemaName and c.Table_name = @TableName and c.Column_Name = @ColumnName and o.type = 'F' ) exec ('alter table [' + @SchemaName + '].[' + @TableName + '] drop constraint [' + @ConstraintName + ']') End