啓用或禁用外鍵約束的語句

--得到禁用全部外鍵約束的語句select 'ALTER TABLE [' + b.name + '] NOCHECK CONSTRAINT ' + a.name +';' as 禁用約束 from sysobjects a ,sysobjects b where a.xtype ='f' and a.parent_obj = b.id--得到啓用全部外鍵約束的語句
相關文章
相關標籤/搜索