摘要:
--/第1步**********删除所有表的外键约束*************************/DECLARE c1 cursorfor select'alter table ['+object_name(parent_obj) +'] drop constraint ['+name+']; ' from sysobjects where xtype ='F'open c1declare@c1varchar(8000)fetchnextfrom c1 into@c1while(@@fetch_status=0) begin 阅读全文