2013年4月24日

快速压缩log文件

摘要: DUMP TRANSACTION Dashboard_Simulation WITH NO_LOGBACKUP LOG Dashboard_Simulation WITH NO_LOGDBCC SHRINKDATABASE(Dashboard_Simulation ) 阅读全文

posted @ 2013-04-24 11:33 沸石 阅读(210) 评论(0) 推荐(0) 编辑

2013年1月11日

SQL Server-拆分字符串返回表(存储过程)

摘要: SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER function [dbo].[f_split](@SourceSql varchar(max),@StrSeprate varchar(10))returns @temp table(a varchar(100))--实现split功能 的函数asbegindeclare @i intset @SourceSql=rtrim(ltrim(@SourceSql))set @i=charindex(@StrSeprate,@SourceSql)while @i>=1begininsert 阅读全文

posted @ 2013-01-11 17:12 沸石 阅读(240) 评论(0) 推荐(0) 编辑

ASHX 生成excel文件

摘要: private void GetCandidateExcelConverter(HttpContext context) { System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; // Workbook excelWorkbook = new Workbook(); string originalFile = context.Server.MapPath("~/webservice/report.xlsx"); Workbook ex... 阅读全文

posted @ 2013-01-11 15:34 沸石 阅读(4125) 评论(0) 推荐(0) 编辑

SQL Server-动态Pivot表的存储过程

摘要: /****** Object: StoredProcedure [dbo].[pivotsp] Script Date: 01/11/2013 14:08:29 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER PROC [dbo].[pivotsp]@query AS NVARCHAR(MAX), -- The query, can also be the name of a table/view.@on_rows AS NVARCHAR(MAX), -- The columns that will be regular ro 阅读全文

posted @ 2013-01-11 14:13 沸石 阅读(478) 评论(0) 推荐(0) 编辑

2011年1月24日

突破AD查询1000条限制(转)

摘要: 在测试中,常遇到需要测试我们系统的AD/LDAP大用户量展现和下载功能,但win2003server似乎限制该查询数量为1000,使用包括ldap browser在内的工具,也不能将我们AD server上面的10000用户展现完全。 其实这个问题在微软的网站已经给出了解决方案,在微软网站搜索“ad 1000“就能找到: http://support.microsoft.com/kb/315071 其原因是windows2003server出于性能负荷的考虑,将LDAP查询的数量限制为1000个。当AD中的条目(user/group/ou)数量超过1000条时,使用LDAP查询工具进行查 阅读全文

posted @ 2011-01-24 09:27 沸石 阅读(506) 评论(0) 推荐(0) 编辑

2010年11月25日

轻松创建运行命令 (转)

摘要: 大家都知道通过“运行”命令可以快速打开系统工具,系统文件夹和系统文件等,但普通的应用程序、文件和文件夹是没有“运行”命令的,所以就无法使用“运 行”工具来快速打开它们。其实用实用变通的方法为所有的程序、文件和文件夹都创建运行命令,就可以使用“运行”工具来快速打开它们,操作更加便捷。 步骤1:新建一个&... 阅读全文

posted @ 2010-11-25 17:26 沸石 阅读(298) 评论(0) 推荐(0) 编辑

2010年9月29日

(转)Resolving errors creating a Strong Name Key

摘要: William Bartholomew Musings on software engineering, technology and Aspergers Syndrome. Resolving errors creating a Strong NameKey with one comment When creating a strong-name key inthe “Sign... 阅读全文

posted @ 2010-09-29 15:27 沸石 阅读(198) 评论(0) 推荐(0) 编辑

2010年6月4日

以动词开头的习惯搭配:转

摘要: 以动词开头的习惯搭配以动词开头的习惯搭配 accuse sb. of 指控某人 adapt …to(使)适应,(使)适合 attach importance to 重视 act as 充当 break one's word 食言,失信 beware of 注意,留心 bear in mind 记住 behave oneself 守规矩 bring home to …... 阅读全文

posted @ 2010-06-04 11:13 沸石 阅读(906) 评论(0) 推荐(0) 编辑

2010年3月18日

枚举的遍历和字符串转枚举,枚举转字符串 转

摘要: enum Score { EE,EX,BE,ME,PME } 枚举的遍历 foreach( Scorecity in enum.getvalues( typeof( Score) ) ){ }字符串转枚举 Score enumtype; string strTypeB = "EE"; enumtype = (Score)Enum.Parse(typeof(Score)... 阅读全文

posted @ 2010-03-18 11:03 沸石 阅读(338) 评论(0) 推荐(0) 编辑

2009年10月15日

(转)英语信件中最常用精选句式

摘要: (转)英语信件中最常用精选句式jennifer 发表于 2007-5-19 10:04:00  在收信人名称之前冠以尊称: Mr.(Mister), 用于无职衔的男子。Mrs. ( Mistress)。用于已婚女子。Miss,用于未婚女子。 Misses(Miss的复数),用于复数未婚女子。 Dr.(Doctor),用于博士。 Pro.(Professor),用于大学教授。Ms. 用于女士通称。 ... 阅读全文

posted @ 2009-10-15 12:50 沸石 阅读(386) 评论(0) 推荐(0) 编辑

导航