摘要: 看MS给的解决方案:(http://support.microsoft.com/kb/312629/)症状:如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法,将出现 ThreadAbortException 异常。您可以使用 try-c... 阅读全文
posted @ 2014-05-26 16:00 AndSir 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1)禁止所有表约束的SQLselect 'alter table '+name+' nocheck constraint all' from sysobjects where type='U'2)删除所有表数据的SQLselect 'TRUNCATE TABLE '+name from sysobj... 阅读全文
posted @ 2014-05-26 10:40 AndSir 阅读(665) 评论(0) 推荐(1) 编辑
摘要: 1 判断数据库是否存在Sql代码 if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名] if exists (select * from sys.databases where name =... 阅读全文
posted @ 2014-05-26 10:01 AndSir 阅读(2661) 评论(0) 推荐(0) 编辑
http://www.andsir.cn