使用以下SQL语句查询出表中外键约束名称:code
select name from sys.foreign_key_columns f join sys.objects o on f.constraint_object_id=o.object_id where f.parent_object_id=object_id('表名')
执行以下SQL语句删除便可。blog
1 alter table 表名 drop constraint 外键约束名