摘要: --批量删除用户表--1.删除外键约束DECLARE c1 cursor for select 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; ' from sysobjects where xtype = 'F'open c1declare @c1 varchar(8000)fetch next from c1 into @c1while(@@fetch_status=0) begin exec(@c1) fetch next from c1 into @c1 endclose c1de 阅读全文
posted @ 2010-05-24 23:05 陈同学 阅读(515) 评论(0) 推荐(0) 编辑