2011年3月9日

转:SQL重复记录查询

摘要: select distinct * into #Temp from RepeatAlldrop table RepeatAllselect * into RepeatAll from #Temp drop table #Tempselect identity(int,1,1) id,* into #Temp from RepeatAlldrop table RepeatAll--selectselect name,sex,address from #Temp group by name,sex,address having (count(*)>1)--deletedelete from 阅读全文

posted @ 2011-03-09 10:55 catvi 阅读(190) 评论(0) 推荐(0) 编辑

转:SQl大数据量操作效率以及日志测试

摘要: /*--SQL Server 中的最小日志记录操作 原作: happydreamer(小黑) --整理..邹建--2003.12--*/ /*--控制数据库恢复选项 ALTER DATABASE 数据库名 SET RECOVERY <RECOVERY_OPTIONS> <RECOVERY_OPTIONS> 的取值: FULL | BULK_LOGGED | SIMPLE FULL: 系统将对介质错误提供完全保护。 如果数据文件损坏,介质恢复可以还原所有已提交的事务。 BULK_LOGGED: 将在介质错误保护程度与某些大规模或大容量操作 的最优性能及日志存储空间最少占用 阅读全文

posted @ 2011-03-09 10:52 catvi 阅读(1035) 评论(0) 推荐(0) 编辑

导航