2013年1月31日
摘要: --/第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 阅读全文
posted @ 2013-01-31 17:03 whh 阅读(1134) 评论(0) 推荐(0) 编辑