05 2011 档案
sql 中如何取出指定行: Row_Number
摘要:ROW_NUMBER (Transact-SQL)USE AdventureWorks2008R2;GOWITH OrderedOrders AS( SELECT SalesOrderID, OrderDate, ROW_NUMBER() OVER (ORDER BY OrderDate) AS 'RowNumber' FROM Sales.SalesOrderHeader ) SELECT * FROM OrderedOrders WHERE RowNumber BETWEEN 50 AND 60;
阅读全文
[转载]Sql养成一个好习惯是一笔财富
摘要:http://www.cnblogs.com/MR_ke/archive/2011/05/29/2062085.html我们做软件开发的,大部分人都离不开跟数据库打交道,特别是erp开发的,跟数据库打交道更是频繁,存储过程动不动就是上千行,如果数据量大,人员流动大,那么我么还能保证下一段时间系统还能流畅的运行吗?我么还能保证下一个人能看懂我么的存储过程吗?那么我结合公司平时的培训和平时个人工作经验和大家分享一下,希望对大家有帮助。 要知道sql语句,我想我们有必要知道sqlserver查询分析器怎么执行我么sql语句的,我么很多人会看执行计划,或者用profile来监视和调优查询语句或者存储过
阅读全文
TFS Code Regview
摘要:http://help.teamprise.com/3.2/index.jsp?topic=/com.teamprise.help/plugindoc/ba_shelveset.htmlShelving and Unshelving Pending ChangesShelving and Unshelving Pending ChangesThe Shelve/Unshelve task allows you to set aside pending changes in your TFS workspace if you want to work on something else for
阅读全文
Visio Help and How to
摘要:Create a realizes relationship between two elements using VisioIn a static structure (static structure diagram: A diagram that shows the static structure of a model; that is, the elements that exist (such as classes and types), the internal structure of the elements, and their relationships to one .
阅读全文
[转]《.NET4.0 面向对象编程漫谈》读书笔记 ——第10章 异步编程模式
摘要:http://www.cnblogs.com/laosu/archive/2011/05/23/2054491.html10章 异步编程模式【摘要】:异步编程充分利用多线程技术带来的好处,而不需要程序员了解多线程开发中的复杂细节。本章讲述了基于IAsyncResult的异步模式、基于事件的异步模式。 第1节 程序的同步执行和异步执行1、同步概念:若在代码中调用了一个方法,需要等待此方法所有的代码执行完毕之后,才能回到原来的地方执行下一行代码,这种程序运行方式称为同步。2、异步概念: 在调用方法之后,不用等待方法执行完成就马上执行下一条语句,这种程序运行方式称为异步。3、异步调用的本质:不在主.
阅读全文
[转]Visio Stencil and Template for UML 2.
摘要:Visio Stencil and Template for UML 2.0http://hi.baidu.com/dongyuejiang/blog/item/43559fef49a104eace1b3ed5.htmlThe UML stencil for Microsoft Visio supports symbols of the UML 2.0, specified in OMG UML Superstructure Specification, formal/05-07-04, as well previous UML versions 1.5, 1.4, 1.3 and 1.1..
阅读全文
[转]使用Visio 2000逆向工程将代码转换为UML图表
摘要:http://hi.baidu.com/snacksky/blog/item/9e99f4f1cbf330de0a46e08d.html--摘要:Microsoft Visio 2000 Professional Edition 和 Enterprise Edition 包含通过逆向工程将 Microsoft Visual C++、Microsoft Visual Basic 和 Microsoft Visual J++ 代码转换为统一建模语言 (UML) 类图表模型的技术。本文将讨论从每种语言实施逆向工程的步骤。目录简介概述步骤 1:自定义开发环境步骤 2:打开代码项目以实施逆向工程步骤 .
阅读全文
Visio工具 UML的建模
摘要:UML描述模型的内容有三种 分别是 事物、关系和图事物有:类,接口,用例,组件,结点,交互,包,注释等类: 类分为三部分,顶部为 类名,中间为 属性,下层为 方法在属性或方法前面有三种符号分别是:+,-,#;代表属性或方法的可见性级别;+ public - private # protected类名:如果是抽象类,类名用斜体表示。非抽象类用正体显示属性: 可见性(+-#)属性名[:类型][=默认值] 如: +eye:int=2方法: 可见性(+-#) 方法名([参数名:类型][,参数名:类型])接口用例:UML的关系关联关系,泛化关系,依赖关系,实现关系关联关系:关联关系是有方向的 分为 双.
阅读全文
Visio画UML图基本操作及技巧解析
摘要:Visio如何添加枚举类型 1. 新建DataType2. 选择DataType -> Property -> Stereotype ->enumeration3. 添加其他的Attribute,作为Enumeration值。本文和大家重点讨论一下用Visio画UML图基本操作,画UML图有好多种工具,VISIO只是其中一种,VISIO的动作非常轻快.很多人都在用。下面就让我们一起来看一下具体介绍吧。用Visio画UML图基本操作目的画UML图有好多种工具,VISIO只是其中一种.VISIO的动作非常轻快.很多人都在用.但是对众多的C++程序员来讲,存在着一个问题,那就是VI
阅读全文
[转]TOP 1比不加TOP慢的疑惑
摘要:问题描述:有一个查询如下,去掉TOP 1的时候,很快就出来结果了,但加上TOP 1的时候,一般要2~3秒才出数据,何解?SELECT TOP 1 A.INVNO FROM A, BWHERE A.Item = B.ItemNumber AND B.OwnerCompanyCode IS NOT NULL问题原因分析:在使用TOP 1的时候,SQL Server会尽力先找出这条TOP 1的记录,这就导致它采用了与不加TOP时不一致的扫描算法,SQL Server查询优化器始终认为,应该可以比较快的找到匹配的第1条记录,所以一般是使用嵌套循环的联接,则不加TOP 1时,SQL Server会根据结
阅读全文
DataGrid VirtualMode 动态加载数据
摘要:DataGrid VirtualMode View Code usingSystem;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Drawing;usingSystem.Windows.Forms;namespaceWindowsFormsApplication8{publicpartialclassVirtualJustInTimeDemo:System.Windows.Forms.Form{privateDataGridViewdataGridView1=newDataGridView();privateCachememo
阅读全文
Track changes
摘要:http://www.fgcu.edu/support/office2007/word/changes.aspTrack Changes is a great feature of Word that allows you to see what changes have been made to a document. The tools for track changes are found on the Reviewing tab of the Ribbon.Begin Track ChangesTo keep track of the changes you’ll be making
阅读全文
Loads the specified manifest resource from this assembly
摘要:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.IO;usingSystem.Reflection;usingSystem.Data.SqlClient;namespaceConsoleApplication3{classProgram{staticvoidMain(string[]args){}//Loadsthespecifiedmanifestresourcefromthisassembly.//fileName:createLgin.S
阅读全文