<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_邀月工作室_分类_SQLServer2008笔记</title><id>http://feed.cnblogs.com/blog/u/22045/category/230397/rss</id><updated>2012-05-31T10:24:12Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/category/230397.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/22045/category/230397/rss"/><entry><id>http://www.cnblogs.com/downmoon/archive/2012/04/07/2435993.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第八章The Query Optimizer(10)</title><summary type="text"> 今天我们继续学习三个有关计划更新的概念：Halloween Protection、Split/Sort/Collapse和Merge</summary><published>2012-04-07T07:07:00Z</published><updated>2012-04-07T07:07:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2012/04/07/2435993.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2012/04/07/2435993.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2012/03/14/1715874.html</id><title type="text">《Microsoft Sql server 2008 Internal》读书笔记--第六章Indexes:Internals and Management(10)</title><summary type="text">前一节主要介绍了索引的更新机制和索引的转向指针，以及更新的位置和修改单个行（或单索引对应的若干行）。如果你修改单个操作（Insert,update,Delete）或使用（BCP、BLUK Insert）命令的多行，而表有多个索引时，你得关注另外一些主题。SQL Server 2008提供了两种维护表索引的策略：表级修改和索引级修改。查询优化器会根据预计的执行成本决定使用相应的策略。</summary><published>2012-03-14T07:57:00Z</published><updated>2012-03-14T07:57:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2012/03/14/1715874.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2012/03/14/1715874.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2011/05/03/2035259.html</id><title type="text">SQL Server 2008中原生的分层数据类型：hierarchyid</title><summary type="text">如果是在SQL 2000中，我们需要读取分层结构数据时，不得不借助递归。在SQL server 2005中，我们可以使用CTE，当然，好的数据结构设计可以避免你使用CTE，请看这里：http://www.cnblogs.com/downmoon/archive/2009/10/23/1588405.html如果你是一个数据库设计新手，那么在sql server 2008中可以使用新的原生分层结构数据hierarchyid。</summary><published>2011-05-03T06:14:00Z</published><updated>2011-05-03T06:14:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2011/05/03/2035259.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2011/05/03/2035259.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/08/08/1794816.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第五章Table(7)</title><summary type="text"> 我们已经了解SQL Server如何在一个Heap中存储数据。现在我们了解一下SQL Server在一个Heap数据修改时内部实际如何操作。对于一个有聚集索引的表的数据修改，我们在第七章中讨论。一般来说，在一个表中应该有一个聚集索引。某些情况下你也许会觉得Heap是一个更好的选择，但请注意，希望做出彻底测试后再做决定。现在，我们只关注Heap中数据的修改。</summary><published>2010-08-07T16:23:00Z</published><updated>2010-08-07T16:23:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/08/08/1794816.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/08/08/1794816.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/08/04/1789686.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(11)</title><summary type="text"> DBCC CHECKDB之外的一致性检查命令，包含：DBCC CHECKALLOC，DBCC CHECKTABLE，DBCC CHECKFILEGROUP，DBCC CHECKCATALOG，DBCC CHECKIDENT，DBCC CHECKCONSTRAINTS</summary><published>2010-08-04T11:52:00Z</published><updated>2010-08-04T11:52:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/08/04/1789686.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/08/04/1789686.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/08/03/1789683.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(9)</title><summary type="text"> DBCC CHECKED用四种方式输出信息：1、常规输出，由一个错误的信息和邮件组成的列表指向发布DBCC CHECKDB命令的连接。2、SQL Server 错误日志的一条信息3、Windows 应用程序事件日志的一个项。4、在sys.dm_exec_requests目录视图的进度报告信息</summary><published>2010-08-03T12:44:00Z</published><updated>2010-08-03T12:44:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/08/03/1789683.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/08/03/1789683.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/08/03/1776366.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(8)</title><summary type="text">  前面几篇主要介绍了per-table一致性检查，本文我们关注交叉表的一致性检查，主要包括：Service Broker一致性检查，交叉目录(cross-catalog)一致性检查，索引视图一致性检查，XML索引一致性检查，空间索引(spatial- index)一致性检查。</summary><published>2010-08-02T16:33:00Z</published><updated>2010-08-02T16:33:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/08/03/1776366.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/08/03/1776366.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/08/01/1776364.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(6)</title><summary type="text"> 上篇关注元数据一致性检查、页审核、数据和索引页处理；本文我们继续了解per-table逻辑一致性检查，将继续关注：列处理、文本页处理。</summary><published>2010-08-01T12:25:00Z</published><updated>2010-08-01T12:25:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/08/01/1776364.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/08/01/1776364.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/08/01/1776363.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(5)</title><summary type="text"> 上文简单介绍了原始的系统目录一致性检查和分配的一致性检查。本文我们继续了解per-table逻辑一致性检查。这部分内容较多，分为上中下三篇：上篇关注元数据一致性检查、页审核、数据和索引页处理；中篇关注：列处理、文本页处理，下篇关注交叉页一致性检查。</summary><published>2010-08-01T00:24:00Z</published><updated>2010-08-01T00:24:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/08/01/1776363.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/08/01/1776363.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/31/1776362.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(4)</title><summary type="text">  从本文开始，我们了解几种类型的一致性检查，先来看两个，原始的系统目录一致性检查和分配的一致性检查。</summary><published>2010-07-31T05:10:00Z</published><updated>2010-07-31T05:10:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/31/1776362.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/31/1776362.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/28/1776361.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(3)</title><summary type="text"> 上文主要介绍有效处理数据库的几个方法：事实生成、使用查询处理器。本文关注批处理、读取数据页到进程和并行机制。</summary><published>2010-07-27T16:03:00Z</published><updated>2010-07-27T16:03:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/28/1776361.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/28/1776361.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/22/1776360.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(2)</title><summary type="text">上文简要介绍了获取一个持久视图、磁盘空间冲突和使用数据库快照的替代方案，本文将关注有效处理数据库的几个方法：事实生成、使用查询处理器、批处理、读取数据页到进程和并行机制。</summary><published>2010-07-22T14:25:00Z</published><updated>2010-07-22T14:25:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/22/1776360.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/22/1776360.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/20/1778575.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(11)</title><summary type="text">本文将继续关注计划向导的后半部分，包括：计划指南的管理、计划指南的考虑因素、计划指南的有效性、从计划缓存中冻结计划。这也是计划缓存和重编译的最后一节。</summary><published>2010-07-19T16:34:00Z</published><updated>2010-07-19T16:34:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/20/1778575.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/20/1778575.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/18/1776335.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(10)</title><summary type="text">上文主要介绍计划缓存的时机和计划缓存冲突。本文将继续关注计划指南(Plan Guide)和优化指示(Optimization Hints)，由于篇幅所限，计划指南分两部分，第一部分包括：优化提示、计划指南的意图、计划指南的类型。第二部分包括：计划指南的管理、计划指南的考虑因素、计划指南的有效性、从计划缓存中冻结计划。本文是第一部分。</summary><published>2010-07-17T23:34:00Z</published><updated>2010-07-17T23:34:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/18/1776335.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/18/1776335.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/17/1776359.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第十一章DBCC Internals(1)</title><summary type="text">当任何人提到检查一个SQL Server数据库的一致性时，头脑中的第一反应该是“DBCC”。在SQL Server７.０中，DBCC代表数据库一致性检查，但在随后版本，SQL Server2000中，微软改变了定义，它变成了数据库控制台命令。这也折射出一个事实：DBCC命令已经远远超出一致性检查的范围。</summary><published>2010-07-16T16:35:00Z</published><updated>2010-07-16T16:35:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/17/1776359.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/17/1776359.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/15/1776333.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(9)</title><summary type="text">上文主要介绍了缓存大小管理、缓存项的成本(Costing of Cache entries),本文我们继续关注计划缓存的时机和计划缓存冲突。</summary><published>2010-07-15T15:22:00Z</published><updated>2010-07-15T15:22:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/15/1776333.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/15/1776333.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/13/1774944.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(8)</title><summary type="text">上文主要介绍了已编译计划、执行上下文和计划缓存元数据和几个常用的系统函数，并介绍了几个葵花宝典级的调优语句。本文将继续关注缓存大小管理、缓存项的成本(Costing of Cache entries)。</summary><published>2010-07-12T16:21:00Z</published><updated>2010-07-12T16:21:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/13/1774944.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/13/1774944.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/11/1774754.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(7)</title><summary type="text">上文我们了解计划缓存内部操作的第一部分－缓存存储。今天我们继续关注已编译计划、执行上下文和计划缓存元数据相关的几个非常有用的系统函数和视图。</summary><published>2010-07-11T15:31:00Z</published><updated>2010-07-11T15:31:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/11/1774754.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/11/1774754.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/10/1772412.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(6)</title><summary type="text">上文我们了解编译对象和重编译的起因:Correctness-Based Recompiles,Optimality-based Recompiles。今天我们继续关注如何从缓存中移除计划和计划缓存内部操作。</summary><published>2010-07-10T02:13:00Z</published><updated>2010-07-10T02:13:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/10/1772412.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/10/1772412.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/downmoon/archive/2010/07/06/1771616.html</id><title type="text">《Microsoft Sql server 2008 Internals》读书笔记--第九章Plan Caching and Recompilation(5)</title><summary type="text">上文我们了解编译对象和重编译的起因之一:Correctness-Based Recompiles,现在我们继续了解重编译的另一个起因：Optimality-based 重编译。</summary><published>2010-07-06T11:45:00Z</published><updated>2010-07-06T11:45:00Z</updated><author><name>邀月</name><uri>http://www.cnblogs.com/downmoon/</uri></author><link rel="alternate" href="http://www.cnblogs.com/downmoon/archive/2010/07/06/1771616.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/downmoon/archive/2010/07/06/1771616.html"/><content type="html"/></entry></feed>
