如何使用T-SQL临时禁用外键约束?

荒凉一梦 提交于 2020-04-23 07:04:10

问题:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!