0
点赞
收藏
分享

微信扫一扫

T-SQL_禁用表上的外键约束


--禁用所有约束
exec sp_msforeachtable ’alter table ? nocheck CONSTRAINT all’
--再启用所有外键约束
exec sp_msforeachtable ’alter table ? check constraint all’


举报

相关推荐

0 条评论