自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Kevin's Blog SQL讨论群21426959 Dynamics AX 438084988

技术是靠累计的,每天记录一点。 关注数据库,BI,大树据,移动开发,云技术

  • 博客(13)
  • 资源 (12)
  • 收藏
  • 关注

原创 Windows 2008 R2 pre-release 升级成正式版

打补丁的时候发现无法安装成功后来发现安装版本为Windows2008 R2 pre-release。要解决这个问题可以通过两种方法1.重装正式版 2.升级。但是如果重装的话,影响是比较大的,应用要停机,装完之后还要重装应用配置,工作量非常大。所以升级是一个比较好的办法,只需要一点维护停机时间,升级完成之后应用可以正常使用(在升级之前一定先要做好测试,并且有回滚方案。) 具体升级步骤如下:

2013-01-24 11:11:08 1332

原创 Error number: 20598 The row was not found at the Subscriber when applying the replicated command.

今天测试Replication遇到下面的错误: The row was not found at the Subscriber when applying the replicatedcommand.(Source: MSSQLServer, Error number: 20598)if @@trancount > 0 rollback tran(Transaction seque

2013-01-23 10:42:41 2013

原创 序列化隔离级别Key-Range锁定的真实键范围

大家都知道在序列化隔离级别中引入了键范围锁定。键范围锁可防止其他事务插入其键值位于可序列化事务读取的键值范围内的新行,从而确保满足此要求。但是对于锁定的范围真的清楚吗? 前几天看到有人对于锁范围的疑问,发现锁定的数据比想象的要多。  下面我们看个例子:---create tableand insert test dataCREATE TABLE TEST(C1INTprim

2013-01-22 12:48:47 1683

转载 大型网站架构演变和知识体系

之前也有一些介绍大型网站架构演变的文章,例如LiveJournal的、ebay的,都是非常值得参考的,不过感觉他们讲的更多的是每次演变的结果,而没有很详细的讲为什么需要做这样的演变,再加上近来感觉有不少同学都很难明白为什么一个网站需要那么复杂的技术,于是有了写这篇文章的想法,在这篇文章中 将阐述一个普通的网站发展成大型网站过程中的一种较为典型的架构演变历程和所需掌握的知识体系,希望能给想从事互联网

2013-01-16 14:06:54 983

原创 使用DBCC CHECKPRIMARYFILE 查询Detach数据库信息

在论坛碰到有人问到无法Attach数据库的问题,错误信息为: Msg 5171, Level 16, State 1, Line2“path\allen_log.ldfis not a primary database file. 很明显这个错误表示Attch数据库选择的文件不是主数据库文件,但是看附加的数据文件确实是MDF结尾的。问用户是否有多个MDF文件,用户说是,但是他确

2013-01-16 11:27:45 2854

转载 base64 中文加密和解码

在工作中需要解密base64加密的数据,但是解密出来发现有乱码,中文无法显示,使用下面的方法就可以了。 加密 string ssd = Convert.ToBase64String(System.Text.Encoding.GetEncoding("gb2312").GetBytes("中国"));解码string ss = System.Text.Encoding.GetEn

2013-01-15 13:46:16 3679

原创 SQL Server 2005 没有本地发布选项

在论坛看到一个帖子说自己的数据库使用SSMS打开只显示本地订阅没有本地发布,截图如下:  因为SQL Server 2005 Express是只有订阅功能没有发布功能的,所以当时考虑可能安装的是Express版本。来自MSDN( SQL Server Express 的复制源自在SQL Server 2005 中创建的发布。运行SQL Server 2005 的计算机为发布服务

2013-01-15 09:57:49 3621

原创 NDF文件丢失或者损坏是否可以成功附加数据库

曾经看到有人遇到过NDF文件损坏或者丢失想要通过MDF直接附加数据库,但是结果是失败。在网上也Google了一下看到很多人问这个问题,答案是不可以的。 来自MSDN:FORATTACH requires the following: ·        Alldata files (MDF and NDF) must be available.·        Ifmultipl

2013-01-10 09:50:34 3614

原创 使用SQL Storage Compress压缩SQL Server 数据库文件

这几天在测试SQL Server数据压缩功能,通过对数据仓库表启用压缩,磁盘空间大大减小,查询性能和备份速度都有提高。但是SQL Server的数据压缩只有企业版才有这个功能,标准版的话是无法体验的。 从网上查了一下,Rea Hat提供了类似的工具SQL Storage Compress,而且号称可以达到90%的压缩比。SQL Storage Compress提供14天的使用版,下载后

2013-01-07 17:17:14 3082

原创 DBCC SHRINKFILE 为什么会运行很长时间?

今天启用数据压缩功能后,数据库空出了很大的空间,然后使用DBCC SHRINKFILE收缩数据库,花费了很长的时间。相信很多使用SQL Server的朋友都遇到过这样的问题,为什么SQL Server收缩文件这么耗时? 从MSDN上看到“DBCC SHRINKFILE is single-threaded and may take a long time tocomplete”(http:

2013-01-07 13:54:02 3756

原创 使用ALTER TABLE REBUILD减小HEAP表空间

论坛上经常会有很多人抱怨数据库HEAP表碎片很大,无法收缩。在2005之前可以通过创建聚集索引解决或者重建表将数据导入,等到表空间变小后再进行收缩。在2008中有一个新的语法ALTERTABLE REBUILD,使用这条语句可以释放没有使用的空间,提升性能。 下面是我自己的一个表,碎片非常大,占用了大概11G的空间:  使用ALTER TABLE REBUILD之后的效果(

2013-01-07 11:49:53 2943

原创 使用MAXDOP重复利用多处理器启用SQL Server数据压缩功能

随着数据的越来越大,数据库也越来越大,同时伴随着磁盘空间的增长以及性能的下降。使用SQLServer 2008的数据压缩功能可以大大的减小数据量提高查询性能,尤其对于数据仓库非常有用。(BestPractices for Data Warehousing with SQL Server 2008:http://msdn.microsoft.com/en-us/library/cc719165.as

2013-01-07 10:30:22 2045

原创 SQL Server Parallel Data Warehouse (PDW) 介绍

最近大数据概念非常火热,各个厂家都讲大数据视为未来IT的一个重要方向,因此各个厂家都想在这个领域有所作为。前几天参加了IBM大数据研讨会,会上IBM推出了他们针对于大数据的解决方案,三种一体机(PureSystem,另外IBM在推出了DB2 v10,为了打Oracle RAC专门设计的PureScale正式加入了DB2大版本中)。 在MPP架构方面,以前微软是被诟病的,缺乏产品应对大数据的

2013-01-05 14:01:07 3809

Microsoft Private Cloud Computing

Written by a team of expert authors who are MVPs and leaders in their respective fields, this one-of-a-kind book is an essential resource for IT administrators who are responsible for implementing and managing a cloud infrastructure. You’ll quickly learn how cloud computing offers significant cost savings while also providing new levels of speed and agility. Serving as a how-to guide, Microsoft Private Cloud Computing walks you through building a secure, internal cloud and delivering it as a service to your company using Microsoft Windows Server Hyper-V and Microsoft System Center Virtual Machine Manager 2012.

2013-01-15

The Guru's Guide to SQL Server Architecture and Internals.chm

I can pretty much guarantee that anyone who uses SQL Server on a regular basis (even those located in Redmond working on SQL Server) can learn something new from reading this book."

2009-10-13

Windows Server 2003 用户管理指南

由微软资深顾问,微软MVP所著,很精彩的一本书,希望对大家都有帮助

2009-09-27

Sqlserver性能调整

很多客户偶尔会遇到SQL Server 数据库性能下降。原因可能涉及从不良好的数据库设计到不正确的负载配置。作为一个管理员,你应该预先阻止或最小化问题,并当问题发生时,诊断原因并尽可能的做出正确的操作来解决问题。这片白皮书所述的问题通常来源于Microsoft® Corporation 的Customer Support Service(CSS or PSS)部门所遇到的,因为将所有可能的问题都详尽的分析是不合实际的。我们提供了按部就班的指导,通过使用可用的工具例如SQL Server Profiler,System Monitor和在SQL Server 2005中新的Dynamic Management View来为一般的性能问题诊断和排错。

2009-09-27

使用CPU计数器监视SQL Server性能的

当使用CPU计数器测量CPU活动时,记住下面是SQL Server中耗用CPU资源最多的进程: • 上下文切换:当SQL Server在多个CPU之间切换线程时就会发生上下文切换,过多的上下文切换会吃掉CPU资源。有些情况下,打开LightweightPooling选项可以减少上下文切换。

2009-09-27

inside-microsoft-r-sql-server-tm-2005-the-storage-engine

Although one goal of ours was to minimize the amount of overlap between volumes so that readers of the complete series would not have to deal with duplicate content, we also realized that not everyone would start with the same volume. Itzik and I have different approaches to describing SQL Server query processing, index use, and tuning, so when those topics are covered in more than one volume, that duplication is actually a bonus.

2009-09-27

SQL SERVER 2005

Written by a T-SQL guru, this thorough, hands-on reference for database developers and administrators focuses on language features and how they are interpreted and processed by the SQL Server execution engine.

2009-09-27

SQL+Server+2005技术内幕-存储引擎1-5章.pdf

Dive deep into the internals of query tuning and optimization in SQL Server 2005 with this comprehensive reference. Understanding the internals of SQL Server helps database developers and administrators to better create, access, and effectively process information from enterprise data. Written by experts on SQL Server, this volume from the Inside Microsoft SQL Server series of books focuses on query tuning and optimization. You'll take an in-depth look at the best ways to make queries more efficient and effective, while maximizing existing resources. Includes extensive code samples and table examples to help database developers and administrators understand the intricacies and help promote mastery of query tuning and optimization.

2009-09-24

Microsoft Press - Inside Microsoft SQL Server 2005 Query Tuning and Optimization (Sep 2007).chm

Dive deep into the internals of query tuning and optimization in SQL Server 2005 with this comprehensive reference. Understanding the internals of SQL Server helps database developers and administrators to better create, access, and effectively process information from enterprise data. Written by experts on SQL Server, this volume from the Inside Microsoft SQL Server series of books focuses on query tuning and optimization. You'll take an in-depth look at the best ways to make queries more efficient and effective, while maximizing existing resources. Includes extensive code samples and table examples to help database developers and administrators understand the intricacies and help promote mastery of query tuning and optimization.

2009-09-24

Inside Microsoft SQL Server 2005: T-SQL Programming

Written by a T-SQL guru, this thorough, hands-on reference for database developers and administrators focuses on language features and how they are interpreted and processed by the SQL Server execution engine.

2009-09-24

SQL.Server.2005.Administration

There you are, standing in front of the book rack at your favorite book store, leafing through these pages, wondering if this is the one you are looking for. Go ahead; look around to see if I’m watching you. I’ll wait.... OK, the coast is clear. So, did we write this book for you? Since you’re reading this, it’s very likely. Our primary audience is IT professionals (both developers and administrators) who have found themselves responsible for the management and maintenance of a SQL Server 2005 database. You may have been responsible for a SQL Server 2000 database and were just getting used to that when your company decided to move to SQL Server 2005. The new features and new tool set can be intimidating. We wrote this book for you. You may be thinking, “I’m a senior DBA and this book’s title is Beginning SQL Server 2005 Administration. I am not a beginner.” I understand. However, we also wrote this book for you. SQL Server 2005 is a dramatic departure from its predecessors and, even if you are an expert on SQL Server 2000 or SQL Server 7, you will find a great deal of very useful information in this book. Go ahead, flip through the pages, and check it out for yourself. I believe you will find what you’re looking for.

2009-05-25

TSQL Query Tuning

This article is the second in a series that describes a variety of performance tuning techniques that you can apply to your Microsoft SQL Server Transact-SQL programs. In many cases, you could use the graphic user interface provided in Microsoft SQL Enterprise Manager or Microsoft SQL Query Analyzer to achieve the same or similar results to those described here. However, this series focuses on using Transact-SQL as the basis for our solutions. All examples and syntax are verified for Microsoft SQL Server 2000.

2009-05-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除