03 2011 档案

域中搜索用户email
摘要:static public string GetEmailByUserID(string user_id, string pwd, string neededUser_ID) { string email = ""; DirectoryEntry entry = new DirectoryEntry("LDAP://zone1.scb.net", user_id, pwd); DirectorySearcher searcher = new DirectorySearcher(entry); searcher.Filter = "(SAMAcc 阅读全文

posted @ 2011-03-31 15:08 catvi 阅读(585) 评论(0) 推荐(0)

JavaScript 函数在浏览器中直接调用的方法
摘要:直接在浏览器栏输入:javascript:Get(); 后面是函数的名称,就可以调用了啊。当然前提是这个函数Get()在此页面中存在。 阅读全文

posted @ 2011-03-10 13:03 catvi 阅读(758) 评论(0) 推荐(0)

转: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 阅读(201) 评论(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 阅读(1060) 评论(0) 推荐(0)

导航