﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-技不如人</title><link>http://www.cnblogs.com/rickel/</link><description>Welcome to Rickel's blog.</description><language>zh-cn</language><lastBuildDate>Fri, 19 Mar 2010 12:43:37 GMT</lastBuildDate><pubDate>Fri, 19 Mar 2010 12:43:37 GMT</pubDate><ttl>60</ttl><item><title>RTN-APWmS 02: Scrum Master, Product Owner, Team</title><link>http://www.cnblogs.com/rickel/archive/2009/11/27/1612207.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Fri, 27 Nov 2009 09:36:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2009/11/27/1612207.html</guid><description><![CDATA[<p>阅读: 13 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2009-11-27 17:36 <a href="http://www.cnblogs.com/rickel/archive/2009/11/27/1612207.html" target="_blank">原文链接</a></p><p>ScrumMaster, 一个和PM很像的角色，但是不同于传统的PM的是，他的价值在于确保项目按照Scrum流程执行，而并不关心项目的具体的工作内容。工作的具体内容由Team里的PM和Member共同分配和执行。教练是不上场踢球的！</p> <p>Product Owner, The Product Owner’s focus is return on investment (ROI),usually means that the Product Owner chooses to develop product functionality that solves critical business problems.</p> <p>Team:Scrum makes the team responsible for managing development activities.</p><img src="http://www.cnblogs.com/rickel/aggbug/1612207.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2009/11/27/1612207.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2009/11/27/1612207.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>RTN-APMwS 01: 关于Scrum</title><link>http://www.cnblogs.com/rickel/archive/2009/11/27/1612166.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Fri, 27 Nov 2009 08:56:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2009/11/27/1612166.html</guid><description><![CDATA[<p>阅读: 16 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2009-11-27 16:56 <a href="http://www.cnblogs.com/rickel/archive/2009/11/27/1612166.html" target="_blank">原文链接</a></p><p><font color="#ff00ff">Complex problems are those that behave unpredictably.</font></p> <p>软件开发的困难就在于<strong>会发生许许多多不可预期</strong>的问题。如果问题都是可预测的，那我们就有解决方法，就会一路顺风，也就不复杂了。总的来说，不是我们不明白，而是世界变化快，需求、时间、人员、技术，我们开始有了一个完美的计划，可是执行中总是在变化，而由此导致的项目延迟、需求不可控等事情就层出不穷，当为这些疲于奔命的时候，也就是困难重重的时候了。</p> <p><font color="#ff00ff">Laying out a process that repeatably will produce acceptable quality output is called <i>defined process control</i>. When defined process control cannot be achieved because of the complexity of the intermediate activities, something called <i><a href="#wbpch01P6">empirical process control</a></i> has to be employed.</font><a name="14"></a></p> <p>2个概念，Defined Process Control 实际就是理论上的流程控制，而 Empirical Process Control 就是实际操作中的流程控制。实践是检验真理的唯一标准 的良好诠释！理论都是完美的，而实际操作中总遇到各种问题，需要灵活操作。(<font color="#808000">突然觉得这个和国家政策差不多，中央发的文件，各地方执行不一样，大概也是这样的问题~~</font>)</p> <p>这里还说了一点，acceptable quality output. 可接受的质量。所有的项目都应该是以交付一个客户可接受的产品为目标，不要过度要求完美，也不要过于粗陋。按时保质交付的项目才是成功的。质量不仅仅是功能上的，还有客户满意度等多方面因素。</p> <p><font color="#ff00ff">There are three legs that hold up every implementation of empirical process control: <i>visibility</i>, <i>inspection</i>, and <i>adaptation</i>.</font></p> <p>visibility: 所有的都应该真实可见，没有隐瞒和夸张。</p> <p>inspecation: 不停的检查，尽早发现不可预期的问题，以利于我们做出变化。</p> <p>adaptation: 改变以解决问题，process是服务于delivery的，不要僵化了流程的作用。</p> <p><strong>------------------------------------------</strong></p> <p><font color="#ff00ff">I’ve limited my enumeration of complexity in software development to the three most significant dimensions: requirements, technology, and people.</font></p> <p>用最合适的人，使用最适合的技术，完成既定的目标，就成功了。</p> <p>---------------------------------------------------</p> <p><font color="#ff00ff">The Skeleton and Heart of Scrum.</font> <p><a href="http://images.cnblogs.com/cnblogs_com/rickel/WindowsLiveWriter/RTNAPMwS01Scrum_F7A5/ScreenCap_2.jpg"><img title="ScreenCap" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="150" alt="ScreenCap" src="http://images.cnblogs.com/cnblogs_com/rickel/WindowsLiveWriter/RTNAPMwS01Scrum_F7A5/ScreenCap_thumb.jpg" width="244" border="0"></a>  <p>Scrum的框架：通过<strong><font color="#ff0000">不停的迭代</font></strong>使产品功能逐渐完善。 <p>1. 迭代开始前，确定本迭代要完成的内容（目标） <p>2. 迭代期间确保目标达成 <p>3. 迭代完成进行确认。 <p>-------------------------------------------------------</p> <p><strong>Scrum Roles</strong>: 先放一副图，以后看到这一部分时候再说吧</p> <p><a href="http://images.cnblogs.com/cnblogs_com/rickel/WindowsLiveWriter/RTNAPMwS01Scrum_F7A5/ScreenCap_4.jpg"><img title="ScreenCap" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="431" alt="ScreenCap" src="http://images.cnblogs.com/cnblogs_com/rickel/WindowsLiveWriter/RTNAPMwS01Scrum_F7A5/ScreenCap_thumb_1.jpg" width="644" border="0"></a> </p> <p>---------------------------------------------------</p> <p><strong>Summarize</strong></p> <p>Scrum 期望通过发挥团队所有成员的有价值的工作来确保项目的成功。使用Scrum来管理项目，对团队成员提出在技术能力之外的很多要求，包括 责任心、主动性、有效沟通、计划性、独立思考能力、目标制定等。而Scrum这个角色就是用于确保团队成员的这些行为能力得到执行的。</p> <p>回顾Scrum管理流程，在PO获得需求之后产生了Product Backlog，也就是需求清单。项目组需要根据Product Backlog来进行分解，与Product Owner（产品经理）进行充分沟通，按优先级、重要性等进行排列，从而产生第一个Sprint Backlog清单，也就是第一阶段完成的功能点清单，开始进行开发工作。本sprint完成之后需要得到PO的确认，再选择次优先级的一批清单，形成下一个Sprint backlog，循环迭代直到完成所有内容。</p> <p>在这个过程里面，团队成员无法决定要做一个具有哪些功能的产品，<strong>但是</strong>，每一个sprint做哪些功能，则完全有可能由团队成员进行决定，并且必须承诺在本周期内一定可以实现。这就要求团队的每一个成员都清晰的理解需求，清楚的认识自己的能力，否则这个commitment是没有意义的。开发过程中，团队内需要充分沟通，以达到高效运作的可能性；要暴露所有的问题和情况，便于团队解决和弥补。</p> <p>总的来说，很理想，但在实际过程中，人的因素会比较影响整个project的执行。</p><img src="http://www.cnblogs.com/rickel/aggbug/1612166.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2009/11/27/1612166.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2009/11/27/1612166.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>RTN : Agile Project Management with Scrum</title><link>http://www.cnblogs.com/rickel/archive/2009/11/26/1611491.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Thu, 26 Nov 2009 09:33:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2009/11/26/1611491.html</guid><description><![CDATA[<p>阅读: 13 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2009-11-26 17:33 <a href="http://www.cnblogs.com/rickel/archive/2009/11/26/1611491.html" target="_blank">原文链接</a></p><p>今天开始读这本书，学习一下Scrum的思想。</p> <p>做个笔记。算开篇介绍。</p> <p><a><strong>Agile Project Management with Scrum</strong></a>  <p>by Ken Schwaber<br>ISBN:073561993x  <p>Microsoft Press © 2004  <p>Apply the principles of Scrum, one of the most popular agile programming methods, to software project management—and focus your team on delivering real business value.  <p><a name="TOC"></a><strong>Table of Contents</strong>  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Agile Project Management with Scrum  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Foreword  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Introduction  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 1 - Backdrop: The Science of Scrum  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 2 - New Management Responsibilities  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 3 - The ScrumMaster  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 4 - Bringing Order from Chaos  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 5 - The Product Owner  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 6 - Planning a Scrum Project  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 7 - Project Reporting— Keeping Everything Visible  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 8 - The Team  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Chapter 9 - Scaling Projects Using Scrum  <p><img height="1" alt="" src="images/_.gif" width="1" border="0">Appendix A - Rules  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Appendix B - Definitions  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Appendix C - Resources  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Appendix D - Fixed-Price, Fixed-Date Contracts  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Appendix E - Capability Maturity Model (CMM)  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>Index  <p><img height="1" alt="" src="images/_.gif" width="1" border="0"><br>List of Figures  <img src="http://www.cnblogs.com/rickel/aggbug/1611491.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2009/11/26/1611491.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2009/11/26/1611491.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>数据库镜像的配置</title><link>http://www.cnblogs.com/rickel/archive/2009/05/18/1459592.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Mon, 18 May 2009 10:11:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2009/05/18/1459592.html</guid><description><![CDATA[<p>阅读: 27 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2009-05-18 18:11 <a href="http://www.cnblogs.com/rickel/archive/2009/05/18/1459592.html" target="_blank">原文链接</a></p><p>有见证服务器的配置</p> <p>先决条件：SQL SERVER 2005 SP1以上， 版本号：9.00.3042以上</p> <p>配置步骤：</p> <p>1、切换数据库的恢复模式（Recorvery）</p> <blockquote> <p>alter database DATABASE_NAME set recovery full</p></blockquote> <p>2、在主数据库备份数据库文件与日志文件（路径随意）</p> <blockquote> <p>Use DATABASE_NAME  <p>go <p>backup database DATABASE_NAME  to disk='D:\DATABASE_NAME.bak' with format <p>go <p>backup log DATABASE_NAME  to disk='D:\DATABASE_NAMELog.bak' with format</p></blockquote> <p>3、在镜像数据库恢复第2步中备份的数据库</p> <blockquote> <p>restore database DATABASE_NAME <p>from disk='D:\DATABASE_NAME.bak' with norecovery <p>go <p>restore log 数据库名 <p>from disk='D:\DATABASE_NAMELog.bak' with norecovery <p>go</p></blockquote> <p>4、在已备份的数据库上启动镜像，图形界面，不赘述</p> <blockquote> <p><a href="http://images.cnblogs.com/cnblogs_com/rickel/WindowsLiveWriter/bdfa48f3107c_E737/clip_image001_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://images.cnblogs.com/cnblogs_com/rickel/WindowsLiveWriter/bdfa48f3107c_E737/clip_image001_thumb.jpg" width="244" height="187"></a></p></blockquote><img src="http://www.cnblogs.com/rickel/aggbug/1459592.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2009/05/18/1459592.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2009/05/18/1459592.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>查看SQL Server中某数据库下每个表占用的空间大小</title><link>http://www.cnblogs.com/rickel/archive/2009/03/03/1402301.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Tue, 03 Mar 2009 07:50:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2009/03/03/1402301.html</guid><description><![CDATA[<p>阅读: 179 评论: 2 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2009-03-03 15:50 <a href="http://www.cnblogs.com/rickel/archive/2009/03/03/1402301.html" target="_blank">原文链接</a></p><DIV class=cnblogs_code><FONT face=Verdana><SPAN style="COLOR: #0000ff"><BR>if</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">not</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">exists</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">*</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000">&nbsp;dbo.sysobjects&nbsp;</SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000">&nbsp;id&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">object_id</SPAN><SPAN style="COLOR: #000000">(N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">[dbo].[tablespaceinfo]</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #808080">and</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">OBJECTPROPERTY</SPAN><SPAN style="COLOR: #000000">(id,&nbsp;N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">IsUserTable</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">1</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)<BR></SPAN><SPAN style="COLOR: #0000ff">create</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">table</SPAN><SPAN style="COLOR: #000000">&nbsp;tablespaceinfo&nbsp;</SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">创建结果存储表</SPAN></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #000000">(nameinfo&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">50</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)&nbsp;,&nbsp;<BR>rowsinfo&nbsp;</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;,&nbsp;reserved&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">20</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)&nbsp;,&nbsp;<BR>datainfo&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">20</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)&nbsp;,&nbsp;<BR>index_size&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">20</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)&nbsp;,&nbsp;<BR>unused&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">20</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)&nbsp;)<BR><BR></SPAN><SPAN style="COLOR: #0000ff">delete</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000">&nbsp;tablespaceinfo&nbsp;</SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">清空数据表</SPAN></FONT><SPAN style="COLOR: #008080"><BR></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@tablename</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">255</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">表名称</SPAN></FONT><SPAN style="COLOR: #008080"><BR></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@cmdsql</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">500</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)<BR><BR></SPAN><SPAN style="COLOR: #0000ff">DECLARE</SPAN><SPAN style="COLOR: #000000">&nbsp;Info_cursor&nbsp;</SPAN><SPAN style="COLOR: #0000ff">CURSOR</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FOR</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">select</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;o.name&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000">&nbsp;dbo.sysobjects&nbsp;o&nbsp;</SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">OBJECTPROPERTY</SPAN><SPAN style="COLOR: #000000">(o.id,&nbsp;N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">IsTable</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">1</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;<BR></SPAN><SPAN style="COLOR: #808080">and</SPAN><SPAN style="COLOR: #000000">&nbsp;o.name&nbsp;</SPAN><SPAN style="COLOR: #808080">not</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">like</SPAN><SPAN style="COLOR: #000000">&nbsp;N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">#%%</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">order</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">by</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;o.name<BR><BR></SPAN><SPAN style="COLOR: #0000ff">OPEN</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;Info_cursor<BR><BR></SPAN><SPAN style="COLOR: #0000ff">FETCH</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NEXT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;Info_cursor&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">INTO</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@tablename</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;<BR><BR></SPAN><SPAN style="COLOR: #0000ff">WHILE</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000; FONT-WEIGHT: bold">@@FETCH_STATUS</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">0</SPAN></FONT><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana>BEGIN</FONT></SPAN><SPAN style="COLOR: #000000"><BR><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">exists</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">*</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000">&nbsp;dbo.sysobjects&nbsp;</SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000">&nbsp;id&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">object_id</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #008000">@tablename</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #808080">and</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">OBJECTPROPERTY</SPAN><SPAN style="COLOR: #000000">(id,&nbsp;N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">IsUserTable</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">1</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">)<BR></SPAN><SPAN style="COLOR: #0000ff">execute</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;sp_executesql&nbsp;<BR>N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">insert&nbsp;into&nbsp;tablespaceinfo&nbsp;exec&nbsp;sp_spaceused&nbsp;@tbname</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">,<BR>N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">@tbname&nbsp;varchar(255)</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">,<BR></SPAN><SPAN style="COLOR: #008000">@tbname</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@tablename</SPAN></FONT><SPAN style="COLOR: #000000"><BR><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #0000ff">FETCH</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NEXT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;Info_cursor&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">INTO</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@tablename</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">END</SPAN></FONT><SPAN style="COLOR: #000000"><BR><BR></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana>CLOSE</FONT></SPAN><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;Info_cursor<BR></SPAN><SPAN style="COLOR: #0000ff">DEALLOCATE</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;Info_cursor<BR></SPAN><SPAN style="COLOR: #0000ff">GO</SPAN></FONT><SPAN style="COLOR: #000000"><BR><BR><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">itlearner注：显示数据库信息</SPAN></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #000000">sp_spaceused&nbsp;</SPAN><SPAN style="COLOR: #008000">@updateusage</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">TRUE</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;<BR><BR></SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">itlearner注：显示表信息</SPAN></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">*</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">from</SPAN></FONT><FONT face=Verdana><SPAN style="COLOR: #000000">&nbsp;tablespaceinfo&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">order</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">by</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">cast</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #808080">left</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #ff00ff">ltrim</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #ff00ff">rtrim</SPAN><SPAN style="COLOR: #000000">(reserved))&nbsp;,&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">len</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #ff00ff">ltrim</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #ff00ff">rtrim</SPAN><SPAN style="COLOR: #000000">(reserved)))</SPAN><SPAN style="COLOR: #808080">-</SPAN><SPAN style="COLOR: #800000; FONT-WEIGHT: bold">2</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">as</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">desc</SPAN></FONT><SPAN style="COLOR: #000000"><BR><BR>Drop tablespaceinfo<BR>转载至：<A href="http://hi.baidu.com/lilith_3615/blog/item/d5acb96484ed40f1f7365480.html">http://hi.baidu.com/lilith_3615/blog/item/d5acb96484ed40f1f7365480.html</A></SPAN></DIV><img src="http://www.cnblogs.com/rickel/aggbug/1402301.html?type=1" width="1" height="1" alt=""/><p>评论: 2　<a href="http://www.cnblogs.com/rickel/archive/2009/03/03/1402301.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2009/03/03/1402301.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>about WBS</title><link>http://www.cnblogs.com/rickel/archive/2008/10/10/1308375.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Fri, 10 Oct 2008 12:28:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2008/10/10/1308375.html</guid><description><![CDATA[<p>阅读: 24 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2008-10-10 20:28 <a href="http://www.cnblogs.com/rickel/archive/2008/10/10/1308375.html" target="_blank">原文链接</a></p><P dir=ltr style="MARGIN-RIGHT: 0px">Why is the WBS so important to proposing a deal? You cannot propose a deal without a price. You cannot price without an estimate. You cannot estimate without a plan. You cannot plan without a work breakdown structure (WBS).<BR><BR>The WBS should also include the phases, activities, tasks, dependencies, milestones, and effort. Be sure that you also identify and capture tasks for analysis, review cycles, testing cycles, and meetings. These are often items that take up a great deal of time but are often not included in the WBS<BR><BR>However, the following guidelines apply to most estimation methodologies:<BR>&nbsp; Build your WBS by basing it on outcomes and not actions<BR>&nbsp; Base your WBS on all of the work to be completed, not just on the work to be completed as part of a fee-for-service effort<BR>&nbsp; Do not mix estimation methodologies within a project;<BR>&nbsp; Ensure that each item you create in your WBS does not overlap with another and is a discrete entity.&nbsp;<BR>&nbsp; A good rule of thumb is that to stay at a manageable level of detail, go no more than 3 levels deep in your WBS.&nbsp;<BR>&nbsp; Create your estimates based on the actual length of working time (not calendar time) required for one qualified resource to complete the task<BR>&nbsp; Other than the assumptions documented, create your estimates without thinking about who will be performing the task.&nbsp;<BR>&nbsp; Create quick profiles of the roles that will be performing the work.<BR>&nbsp; Do not add buffer or contingency time to a task estimate in your WBS, this should be added uniformly at a later stage.<BR>&nbsp; If the requirements have imposed a firm deadline, you should work all estimates backwards to the appropriate start time, as a reality check. If the appropriate start time for that deadline is not feasible or is in the past, the project is probably not going to be successful with the current Scope of Work. </P><img src="http://www.cnblogs.com/rickel/aggbug/1308375.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2008/10/10/1308375.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2008/10/10/1308375.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>sql server 2005 压缩实例下所有数据库文件及日志文件 语句</title><link>http://www.cnblogs.com/rickel/archive/2008/10/07/1305521.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Tue, 07 Oct 2008 06:30:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2008/10/07/1305521.html</guid><description><![CDATA[<p>阅读: 526 评论: 1 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2008-10-07 14:30 <a href="http://www.cnblogs.com/rickel/archive/2008/10/07/1305521.html" target="_blank">原文链接</a></p><DIV class=cnblogs_code><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">01.get&nbsp;all&nbsp;database&nbsp;name</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">SELECT</SPAN><SPAN style="COLOR: #000000">&nbsp;DBNAME&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">DB_NAME</SPAN><SPAN style="COLOR: #000000">(s_mf.database_id)&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">INTO</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;#DN<BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sys.master_files&nbsp;s_mf<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>WHERE</FONT></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s_mf.state&nbsp;</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">and</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">&nbsp;ONLINE</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HAS_DBACCESS(</SPAN><SPAN style="COLOR: #ff00ff">DB_NAME</SPAN><SPAN style="COLOR: #000000">(s_mf.database_id))&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">&nbsp;Only&nbsp;look&nbsp;at&nbsp;databases&nbsp;to&nbsp;which&nbsp;we&nbsp;have&nbsp;access</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">GROUP</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">BY</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;s_mf.database_id<BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ORDER</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">BY</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">02.use&nbsp;cursor&nbsp;to&nbsp;fetch&nbsp;db&nbsp;name</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR><FONT face=Verdana size=2>--</FONT></SPAN><SPAN style="COLOR: #008080"><FONT face=Verdana size=2>---02.01&nbsp;declare&nbsp;cursor</FONT></SPAN><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">DECLARE</SPAN><SPAN style="COLOR: #000000">&nbsp;cur&nbsp;</SPAN><SPAN style="COLOR: #0000ff">CURSOR</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FOR</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;<BR></SPAN><SPAN style="COLOR: #0000ff">SELECT</SPAN><SPAN style="COLOR: #000000">&nbsp;DBNAME&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;#DN<BR><BR></SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">---02.02&nbsp;open&nbsp;cursor&nbsp;&amp;&nbsp;declare&nbsp;var</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>OPEN</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;cur<BR></SPAN><SPAN style="COLOR: #0000ff">DECLARE</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">VARCHAR</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">200</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">)<BR></SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">---02.03&nbsp;loop&nbsp;db&nbsp;bane</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">FETCH</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NEXT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000">&nbsp;cur&nbsp;</SPAN><SPAN style="COLOR: #0000ff">into</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">WHILE</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #008000">@@FETCH_STATUS</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">)<BR>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">BEGIN</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">print</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">shrinking&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">&nbsp;...</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">-----02.04&nbsp;only&nbsp;shink&nbsp;log&nbsp;file</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>exec</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><SPAN style="COLOR: #ff0000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;declare&nbsp;@dn&nbsp;varchar(200);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;declare&nbsp;@ln&nbsp;varchar(210);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;@dn&nbsp;=&nbsp;name&nbsp;from&nbsp;&nbsp;</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #ff0000">.dbo.sysfiles&nbsp;where&nbsp;fileid=1&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;@ln&nbsp;=&nbsp;name&nbsp;from&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #ff0000">.dbo.sysfiles&nbsp;where&nbsp;fileid=2&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;use&nbsp;[</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">]&nbsp;backup&nbsp;log&nbsp;[</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #ff0000">]&nbsp;with&nbsp;no_log&nbsp;dbcc&nbsp;shrinkfile&nbsp;(@ln)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<BR><BR></FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">-----02.04&nbsp;shink&nbsp;db&nbsp;file&nbsp;&amp;&nbsp;log&nbsp;file</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">&nbsp;&nbsp;dbcc&nbsp;SHRINKDATABASE&nbsp;(@DbName)</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">print</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">&nbsp;done</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">FETCH</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">NEXT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000">&nbsp;cur&nbsp;</SPAN><SPAN style="COLOR: #0000ff">INTO</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@DbName</SPAN></FONT></FONT><SPAN style="COLOR: #000000"><BR><FONT face=Verdana size=2>&nbsp;&nbsp;</FONT></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>END</FONT></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">---02.05&nbsp;colse&nbsp;cursor</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><SPAN style="COLOR: #0000ff"><FONT face=Verdana size=2>CLOSE</FONT></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;cur<BR></SPAN><SPAN style="COLOR: #0000ff">DEALLOCATE</SPAN></FONT></FONT><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #000000">&nbsp;cur<BR></SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">---03.drop&nbsp;temp&nbsp;table</SPAN></FONT></FONT><SPAN style="COLOR: #008080"><BR></SPAN><FONT face=Verdana><FONT size=2><SPAN style="COLOR: #0000ff">DROP</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">TABLE</SPAN><SPAN style="COLOR: #000000">&nbsp;#DN<BR>-------------------------------<BR>测试服务器的sql和日志经常就太大了，写一个存储过程，然后job定期执行，避免磁盘空间浪费</SPAN></FONT></FONT></DIV><img src="http://www.cnblogs.com/rickel/aggbug/1305521.html?type=1" width="1" height="1" alt=""/><p>评论: 1　<a href="http://www.cnblogs.com/rickel/archive/2008/10/07/1305521.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2008/10/07/1305521.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>TFS服务器及服务帐号迁域的处理</title><link>http://www.cnblogs.com/rickel/archive/2008/01/23/1050547.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Wed, 23 Jan 2008 11:59:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2008/01/23/1050547.html</guid><description><![CDATA[<p>阅读: 166 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2008-01-23 19:59 <a href="http://www.cnblogs.com/rickel/archive/2008/01/23/1050547.html" target="_blank">原文链接</a></p><P><STRONG>本文适用场景：</STRONG></P>
<P>&nbsp;&nbsp;&nbsp; TFS服务器从一个域迁到别一个域中，这里包括服务器加入新域、服务运行账号改为新域的中账号，机器名称不改变。本文在TFS单机部署场景测试通过。</P>
<P><STRONG>迁移步骤：</STRONG></P>
<P>&nbsp; 1. 停止服务器上的TFS服务。</P>
<P>&nbsp;&nbsp;&nbsp; a) 在IIS上停上TFS App Pool和Report Server Pool。</P>
<P>&nbsp;&nbsp;&nbsp; b) 停止Reporting Service服务。</P>
<P>2. 将服务器加入新的域。</P>
<P>3. 修改服务账号。</P>
<P>&nbsp;&nbsp;&nbsp; a) 检查新账号的权根是否足够。</P>
<P>&nbsp;&nbsp;&nbsp; b) 将新账号设为以服务方式登陆。</P>
<P>&nbsp;&nbsp;&nbsp; c) 修改TFS Service账号</P>
<P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TfsAdminiUtil ChangeAccount OldAccount NewAccount Password</P>
<P>&nbsp;&nbsp;&nbsp; d) 修改TFS Reports账号</P>
<P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TfsAdminiUtil ChangeAccount OldAccount NewAccount Password</P>
<P>4. 修改Reporting Service的数据连接配置，将连接账号改为新域中的账号。</P>
<P>5. 在IIS上启动TFS App Pool和Report Server Pool，并进行测试</P>
<P>&nbsp;&nbsp;&nbsp; a) TfsAdminiUtil status检查服务账号工作情况</P>
<P>&nbsp;&nbsp;&nbsp; b) 使用VS2005进行测试。</P><img src="http://www.cnblogs.com/rickel/aggbug/1050547.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2008/01/23/1050547.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2008/01/23/1050547.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>[西安招聘] 微软西安分公司 招聘.NET软件工程师,MOSS开发工程师</title><link>http://www.cnblogs.com/rickel/archive/2008/01/08/1030227.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Tue, 08 Jan 2008 05:09:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2008/01/08/1030227.html</guid><description><![CDATA[<p>阅读: 947 评论: 7 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2008-01-08 13:09 <a href="http://www.cnblogs.com/rickel/archive/2008/01/08/1030227.html" target="_blank">原文链接</a></p>.NET 软件工程师 职位要求：<BR>1、精通ASP.NET2.0(C#)B/S模式开发，至少一年以上.Net项目开发经验； <BR>2、熟悉掌握JavaScript、HTML、CSS、Ajax 等相关技术； <BR>3、熟悉MS SQL SERVER，精通SQL语言； <BR>4、热爱软件开发工作，熟悉软件开发流程，有良好的技术文档习惯，有规范化标准化的代码编写习惯； <BR>5、良好的团队开发意识和沟通表达能力，思维活跃，工作踏实负责，有乐于助人及知识共享的共进精神； <BR><BR>MOSS 开发工程师 职位要求：<BR>1. 符合NET 软件工程师的职位要求<BR>2. 有MOSS开发经验<BR><BR><BR>由于项目需要，以上职位要求尽快到职，有意者请发简历至 rickel_hw at msn.com<BR><BR>谢谢<img src="http://www.cnblogs.com/rickel/aggbug/1030227.html?type=1" width="1" height="1" alt=""/><p>评论: 7　<a href="http://www.cnblogs.com/rickel/archive/2008/01/08/1030227.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2008/01/08/1030227.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item><item><title>SQL清除数据库日志方法</title><link>http://www.cnblogs.com/rickel/archive/2007/12/25/1013938.html</link><dc:creator>Rickel</dc:creator><author>Rickel</author><pubDate>Tue, 25 Dec 2007 05:09:00 GMT</pubDate><guid>http://www.cnblogs.com/rickel/archive/2007/12/25/1013938.html</guid><description><![CDATA[<p>阅读: 260 评论: 0 作者: <a href="http://www.cnblogs.com/rickel/" target="_blank">Rickel</a> 发表于 2007-12-25 13:09 <a href="http://www.cnblogs.com/rickel/archive/2007/12/25/1013938.html" target="_blank">原文链接</a></p><IMG src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">backup</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #ff00ff">log</SPAN><SPAN style="COLOR: #000000"> DataBaseName </SPAN><SPAN style="COLOR: #0000ff">with</SPAN><SPAN style="COLOR: #000000"> no_log <BR><IMG src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">dbcc</SPAN><SPAN style="COLOR: #000000"> shrinkfile (DataBaseName_log)</SPAN>
<P>&nbsp;</P><img src="http://www.cnblogs.com/rickel/aggbug/1013938.html?type=1" width="1" height="1" alt=""/><p>评论: 0　<a href="http://www.cnblogs.com/rickel/archive/2007/12/25/1013938.html#pagedcomment" target="_blank">查看评论</a>　<a href="http://www.cnblogs.com/rickel/archive/2007/12/25/1013938.html#commentform" target="_blank">发表评论</a></p><p><a href="http://job.cnblogs.com/" target="_blank">找优秀程序员，就在博客园</a></p><hr/><p>最新新闻：<br/>· <a href="http://news.cnblogs.com/n/59182/" target="_blank">地盘被HTML5蚕食 Adobe Flash前途堪忧</a><span style="color:gray">(2010-03-19 17:41)</span><br/>· <a href="http://news.cnblogs.com/n/59181/" target="_blank">微软云计算版Exchange默认邮箱容量增至25GB</a><span style="color:gray">(2010-03-19 17:39)</span><br/>· <a href="http://news.cnblogs.com/n/59180/" target="_blank">微软：早期Bing概念设计概览</a><span style="color:gray">(2010-03-19 17:37)</span><br/>· <a href="http://news.cnblogs.com/n/59177/" target="_blank">梅德韦杰夫总统宣布俄罗斯建本国“硅谷”</a><span style="color:gray">(2010-03-19 16:34)</span><br/>· <a href="http://news.cnblogs.com/n/59175/" target="_blank">闾丘露薇：参观两间“小”公司</a><span style="color:gray">(2010-03-19 16:27)</span><br/></p><p>编辑推荐：<a href="http://news.cnblogs.com/n/59093/" target="_blank">[视频]想做你的Code</a><br/></p><p>网站导航：<a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/" target="_blank">个人主页</a>&nbsp;&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;&nbsp;<a href="http://home.cnblogs.com/group/" target="_blank">小组</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com/q/" target="_blank">博问</a>&nbsp;&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;&nbsp;<a href="http://kb.cnblogs.com" target="_blank">知识库</a></p>]]></description></item></channel></rss>