摘要: SQL Server Query Execution Plan AnalysisBy : Brad McGeheeApr 04, 2006 Source:http://www.sql-server-performance.com/tips/query_execution_plan_analysis_p1.aspx欢迎转载。转载请保留原作者姓名以及原文地址,并请注明译文出处:http://blog.csdn.net/xiao_hn当需要分析某个查询的效能时,最好的方式之一查看这个查询的执行计划。执行计划描述SQL Server查询优化器如何实际运行(或者将会如何运行)一个特定的查询。查看查询的执 阅读全文
posted @ 2011-11-21 14:24 Devin Mao 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 今天收到了一个新的需求,是完成一个安全性相对较高的财务系统,大体思路是给用户的帐号充值,其实就是用户表的一个字段修改工作;安全性主要是体现在 1. 任何交易过程均进行相关记录; 2. 并发交易时程序健壮性保证; 3. 交易过程出现在非正常现象(停电,网络断掉)的处理能力; 4. 防止黑客攻击; 对于第一个,那就是简单的任何数据都要存档可以解决;第二个由于系统同时对一个记录做修改的并发量不... 阅读全文
posted @ 2011-11-08 22:29 Devin Mao 阅读(2296) 评论(1) 推荐(1) 编辑
摘要: StackOverflow 上有位网友(xenoterracide)提问: 我正试着搜集整理一个可在网上免费阅读的计算机编程书籍列表。这些书可以是某种特定编程语言,也可以计算机方面通用书籍。网上有哪些免费可用的书籍呢? 下面是一些网友在回复中的推荐资源,其中有视频、大学课程、编程语言教程网站,由伯乐在线整理编译。 一、George Stocker 提供了一大串,分类如下: Meta-Lis... 阅读全文
posted @ 2011-11-04 22:31 Devin Mao 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Are you getting OutOfMemoryExceptions when uploading large files? JohanSt JohanStMicrosoft6,010Recent Achievements 3 3 2Blog Commentator II Blog Party Starter Blogger IIIView Profile15 Nov 2006 4:13 AM Comments 32Problem:Using the WebClient.Upload method for posting large files will eventually leave 阅读全文
posted @ 2011-09-20 10:44 Devin Mao 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Type.GetType(string typeName) returns null !?Rate This Haibo Luo - MSFT 21 Aug 2005 12:58 PM Comments 7Type.GetType gives us the ability to get type back from a string. We pass a well-written type name string to it, and expect it return that type. Sometimes, to your surprise, it returns null. For ex 阅读全文
posted @ 2011-09-07 15:49 Devin Mao 阅读(579) 评论(1) 推荐(0) 编辑
摘要: with temp_data as(select shareID,carID from dbo.che_ShareCar) select car_info.CARID, car_info.CAR_MARK , case when min(shareID) is null then 0 else COUNT(CAR_INFO.CARID) end as sharecount from dbo.CAR_INFO left join temp_data on CAR_INFO.CARID=temp_data.carID where COMPANYID=2 --and shareID is not n 阅读全文
posted @ 2011-08-02 17:02 Devin Mao 阅读(199) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication3{ class Program { static void Main(string[] args) { BookStore bs = new BookStore(); bs.AfterAddedBook += (Object b) => { Book bb = (Book)b; Console.WriteLine(bb.name + "@@ 阅读全文
posted @ 2011-05-21 17:41 Devin Mao 阅读(150) 评论(0) 推荐(0) 编辑
摘要: String[] arr = new[] { "1", "123" }; IEnumerable arrSelectIndex = arr.Select((s, i) => Convert.ToInt32(s) + i); foreach (int i in arrSelectIndex) { ... 阅读全文
posted @ 2011-01-19 14:48 Devin Mao 阅读(213) 评论(0) 推荐(0) 编辑
摘要: SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY 是相似的函数,因为它们都返回插入到标识列中的值。IDENT_CURRENT 不受作用域和会话的限制,而受限于指定的表。IDENT_CURRENT 返回为任何会话和作用域中的特定表所生成的值。有关详细信息,请参阅 IDENT_CURRENT (Transact-SQL)。SCOPE_IDENTITY 和 @@IDENTITY 返回在当前会话中的任何表内所生成的最后一个标识值。但是,SCOPE_IDENTITY 只返回插入到当前作用域中的值;@@IDENTITY 不受限于特定的作用域。例如,有两个表 T1 和 T2 阅读全文
posted @ 2011-01-19 09:34 Devin Mao 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 代码 阅读全文
posted @ 2011-01-06 09:43 Devin Mao 阅读(148) 评论(0) 推荐(0) 编辑