摘要: 创建与删除SQL约束或字段约束 1)禁止所有表约束的SQL select 'alter table '+name+' nocheck constraint all' from sysobjects where type='U'2)删除所有表数据的SQL select 'TRUNCATE TABLE '+name from sysobjects where type='U'3)恢复所有表约束的SQL select 'alter table '+name+' check constraint a 阅读全文
posted @ 2013-10-25 17:43 皮卡熊 阅读(190) 评论(0) 推荐(0)