问题:
Are disabling and enabling foreign key constraints supported in SQL Server? 是否禁用和启用SQL Server支持的外键约束? Or is my only option to drop and then re- create the constraints? 或者是我唯一的选择是drop然后重新create约束?
解决方案:
参考一: https://stackoom.com/question/fN8/如何使用T-SQL临时禁用外键约束参考二: https://oldbug.net/q/fN8/How-can-foreign-key-constraints-be-temporarily-disabled-using-T-SQL
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/3420847