行者无疆
When I was young , I used to think that money was the most important thing in life , now I am old , I know it is.
摘要: http://www.360doc.com/content/07/0702/07/1_589777.shtml使用SQL Server 6年多了,在下自认为对SQL Server还是比较熟悉的,而且我喜欢将SQL Server内部的一些 东西搞清楚。当我在教一门SQL Server编程课程时,我注意到微软MSDN中提到了锁兼容性,在 MSDN列举了一个兼容性关系的表格。看过这张关系表格,我就想知道是否存在用于更新的意向锁(Intent Update lock)?于是我开始阅读相关的资料。 这篇文章也是我研究的结果。这篇文章的适用读者是那些对隔离级别(isolation level),意向锁,死 阅读全文
posted @ 2012-07-13 15:30 衣不如新 阅读(207) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_4aefad88010092uc.html事务(Transaction)是并发控制的基本单位。所谓的事务,它是一个操作序列,这些操作要么都执行,要么都不执行,它是一个不可分割的工作单位。例如,银行转账工作:从一个账号扣款并使另一个账号增款,这两个操作要么都执行,要么都不执行。所以,应该把它们看成一个事务。事务是数据库维护数据一致性的单位,在每个事务结束时,都能保持数据一致性。针对上面的描述可以看出,事务的提出主要是为了解决并发情况下保持数据一致性的问题。事务具有以下4个基本特征。● Atomic(原子性):事务中包含的操作被看做一. 阅读全文
posted @ 2012-07-13 15:30 衣不如新 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 资料一HDF文件格式采取了B树对数据进行存储,下面的文章主要来源于网络。对于一维升序或降序数据序列(假设其个数为N)来说,可以采用两分检索的方法来迅速地找到需要插入或删除元素的位置。但是当采用顺序存储的方式时,为插入一个元素,需要将其以下的数据均进行后移;为删除一个元素,需要将以下的数据进行前移。为避免大量的数据移动,提高插入和删除的工作效率,研究者提出了多种解决方法,B树就是其中较好的一种方案。B树是由一系列节点(SQL Server数据库采结构进行数据存储)所构成,它的每一个节点均由2m个数据域和2m+1个指针域所构成,每个节点的数据从左向右成升序排列。一般情况下,B树的每个节点中的数据域 阅读全文
posted @ 2012-07-13 15:29 衣不如新 阅读(574) 评论(0) 推荐(0) 编辑
摘要: Table and Index OrganizationTables and indexes are stored as a collection of 8-KB pages. This topic describes the way table and index pages are organized.Table OrganizationThe following illustration shows the organization of a table. A table is contained in one or more partitions and each partition 阅读全文
posted @ 2012-07-13 15:28 衣不如新 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 页和盘区(Page and Extents)你的表(Tables)中数据实际上都存储在页(pages)里,除了BLOB类型的数据。如果某列的字段的类型为BLOB那么将有一个16字节的指针指向BLOB page。页是MS SQL Server中数据存储的最小单位。每页包含以行(row)为单位保存数据。一行只能存储在一个页中。每页可以容纳8KB的信息。因为这个原因,每行的最大值为8KB。一组相邻的8个页被称为一个盘区(Extent)堆文件和分配映射索引(Heap and the Index Allocation Map(IAM))堆文件在sysindexs表中只有一行记录,并且其indid = 0 阅读全文
posted @ 2012-07-13 15:27 衣不如新 阅读(352) 评论(0) 推荐(0) 编辑
摘要: The fundamental unit of data storage in SQL Server is the page. The disk space allocated to a data file (.mdf or .ndf) in a database is logically divided into pages numbered contiguously from 0 ton. Disk I/O operations are performed at the page level. That is, SQL Server reads or writes whole data p 阅读全文
posted @ 2012-07-13 15:26 衣不如新 阅读(313) 评论(0) 推荐(0) 编辑
摘要: master 数据库master 数据库记录 SQL Server 系统的所有系统级别信息。它记录所有的登录帐户和系统配置设置。master 数据库是这样一个数据库,它记录所有其它的数据库,其中包括数据库文件的位置。master 数据库记录 SQL Server 的初始化信息,它始终有一个可用的最新 master 数据库备份。tempdb 数据库tempdb 数据库保存所有的临时表和临时存储过程。它还满足任何其它的临时存储要求,例如存储 SQL Server 生成的工作表。tempdb 数据库是全局资源,所有连接到系统的用户的临时表和存储过程都存储在该数据库中。tempdb 数据库在 SQL 阅读全文
posted @ 2012-07-13 15:26 衣不如新 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 【IT168技术文档】 一、理解索引的结构 索引在数据库中的作用类似于目录在书籍中的作用,用来提高查找信息的速度。使用索引查找数据,无需对整表进行扫描,可以快速找到所需数据。微软的SQL SERVER提供了两种索引:聚集索引(clustered index,也称聚类索引、簇集索引)和非聚集索引(nonclustered index,也称非聚类索引、非簇集索引)。 SQL Server 中数据存储的基本单位是页(Page)。数据库中的数据文件(.mdf 或 .ndf)分配的磁盘空间可以从逻辑上划分成页(从 0 到 n 连续编号)。磁盘 I/O 操作在页级执行。也就是说,SQL Server .. 阅读全文
posted @ 2012-07-13 15:25 衣不如新 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 浅谈SQL SERVER中事务的ACID简介 ACID,是指在可靠数据库管理系统(DBMS)中,事务(transaction)所应该具有的四个特性:原子性(Atomicity)、一致性(Consistency)、隔离性(Isolation)、持久性(Durability).这是可靠数据库所应具备的几个特性.下面针对这几个特性进行逐个讲解.理解原子性(Atomicity) 原子性意味着数据库中的事务执行是作为原子。即不可再分,整个语句要么执行,要么不执行。 在SQL SERVER中,每一个单独的语句都可以看作是默认包含在一个事务之中: 所以,每一个语句本身具有原子性,要么全部执行,这么全部不执行 阅读全文
posted @ 2012-07-13 15:24 衣不如新 阅读(153) 评论(0) 推荐(0) 编辑
摘要: SELECTmid.statement,migs.avg_total_user_cost * (migs.avg_user_impact / 100.0) * (migs.user_seeks + migs.user_scans) AS improvement_measure,OBJECT_NAME(mid.Object_id),'CREATE INDEX [missing_index_' + CONVERT (varchar, mig.index_group_handle) + '_' + CONVERT (varchar, mid.index_handle) 阅读全文
posted @ 2012-07-13 15:23 衣不如新 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Update January 2005Summary:A graph, like a tree, is a collection of nodes and edges, but has no rules dictating the connection among the nodes. In this fifth part of the article series, we'll learn all about graphs, one of the most versatile data structures.(22 printed pages)Download the DataStr 阅读全文
posted @ 2012-07-13 15:22 衣不如新 阅读(277) 评论(0) 推荐(0) 编辑
摘要: Update January 2005Summary:This sixth installment of the article series examines how to implement a common mathematical construct, the set. A set is an unordered collection of unique items that can be enumerated and compared to other sets in a variety of ways. In this article we'll look at data 阅读全文
posted @ 2012-07-13 15:22 衣不如新 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Scott Mitchell4GuysFromRolla.comUpdate January 2005Summary:This article, the fourth in the series, begins with a quick examination of AVL trees and red-black trees, which are two different self-balancing binary search tree data structures. The remainder of the article examines the skip list data str 阅读全文
posted @ 2012-07-13 15:21 衣不如新 阅读(376) 评论(0) 推荐(0) 编辑
摘要: ott Mitchell4GuysFromRolla.comUpdate January 2005Summary:This article, the third in a six-part series on data structures in the .NET Framework, looks at a common data structure that isnotincluded in the .NET Framework Base Class Library—binary trees. Whereas arrays arrange data linearly, binary tree 阅读全文
posted @ 2012-07-13 15:20 衣不如新 阅读(470) 评论(0) 推荐(0) 编辑
摘要: Scott Mitchell4GuysFromRolla.comUpdate January 2005Summary:This article, the second in a six-part series on data structures in the .NET Framework, examines three of the most commonly studied data structures: the Queue, the Stack, and the Hashtable. As we'll see, the Queue and Stack are specializ 阅读全文
posted @ 2012-07-13 15:18 衣不如新 阅读(322) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/en-us/library/ms379570%28VS.80%29.aspxScott Mitchell4GuysFromRolla.comUpdate January 2005Summary:This article kicks off a six-part article series that focuses on important data structures and their use in application development. We'll examine both built-in data structu 阅读全文
posted @ 2012-07-13 15:17 衣不如新 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 第12章 状态管理——记录你网站访客的活动本章将逐一介绍ASP.NET中的各种状态管理机制,并在最后完善论坛的注册和登录。开发Web应用程序必须了解程序的运行状态和状态管理等,理解状态管理的一些基本原理,可以帮助我们开发出高性能的应用程序,同时避免出现潜在的安全问题。12.1 状态管理概述12.1.1 状态管理与数据库状态管理是你对同一页或不同页的多个请求维护状态和页信息的过程。与所有基于 HTTP 的技术一样,Web 窗体页是无状态的,这意味着它们不自动指示序列中的请求是否全部来自相同的客户端,或者单个浏览器实例是否一直在查看页或站点。此外,到服务器的每一往返过程都将销毁并重新创建页;因此, 阅读全文
posted @ 2012-07-13 15:15 衣不如新 阅读(243) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/stwyhm/archive/2006/08/08/470972.aspxHTTP运行期与页面执行模型——一点一点学ASP.NET文野:2006年8月8日星期二HTTP运行期HTTP运行期处理客户端应用程序(例如Web浏览器)进入的一个Web请求,通过处理它的应用程序的适当组件路由请求,然后产生响应并发回提出请求的客户端应用程序。进入的HTTP Web请求最先由IIS Web服务器接收到,它在此请求基于ASP.NET已注册处理的扩展名传送到ASP.NET ISAPI上。HTTP运行期首先创建一个HttpContext对象的实例,它包含了当前正在处理 阅读全文
posted @ 2012-07-13 14:52 衣不如新 阅读(152) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xingyukun/archive/2007/08/22/851981.html 阅读全文
posted @ 2012-07-13 14:51 衣不如新 阅读(126) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/tmfc/archive/2006/08/29/489779.html[翻译]了解ASP.NET底层架构(一)花了两个星期的时间终于翻译的差不多了.由于文章较长,准备分几次贴出来.PS:不知道翻译的文章能不能放到首页,如果不行的话还请各位大大移走,谢谢.原文地址:http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp了解ASP.NET底层架构进入底层这篇文章以非常底层的视角讲述了Web请求(request)在ASP.NET框架中是如何流转的,从Web服务器,通 阅读全文
posted @ 2012-07-13 14:47 衣不如新 阅读(174) 评论(0) 推荐(0) 编辑