自定义博客皮肤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,大树据,移动开发,云技术

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

原创 为什么SQL Server使用很少的内存?

昨天论坛里边看到一个帖子,说SQL Server的内存一直上不去。从Task Schedule中看到SQL Server只使用了88MB内存,实际这台机器有12GB的内存,可用内存有超过8GB。 当时我以为是开启了AWE导致的,所以连接到他的服务器看了一下。但是数据库为2005企业版64位,所以不用开启AWE。而且即使开启了,也会被忽略。 使用下面的脚本查询了一下SQL Serve

2013-02-28 15:31:17 2623

原创 是否可以在网络共享磁盘上创建数据库?

在网上看到有人遇到数据库空间不够用,问是否可以创建数据库到网络共享磁盘? 答案是可以的。但是这种做法是不推荐的,性能可能会受到影响。 1.      2005/2008 在网络共享磁盘上创建数据库 在2005和2008上默认是不可以在网络共享磁盘上创建数据库的,因为可能会因为网络原因导致数据库的完整性出现问题,同时伴随着IO性能损失导致数据库出现问题。Microsoft KB #3

2013-02-26 12:04:05 1660

原创 查询SQL Server内存使用状况脚本

SELECT type,--Clerk的类型    sum(virtual_memory_reserved_kb)as vm_Reserved_kb,--保留的内存    sum(virtual_memory_committed_kb)as vm_Committed_kb,--提交的内存    sum(awe_allocated_kb)as awe_Allocated_kb,--开启A

2013-02-07 16:15:46 2094

转载 Divide and Conquer Transactional Replication using Tracer Tokens

As we know, Transactional Replication moves data from the Publisher to the Distributor then to the Subscribers.  When working, data flows near real-time through both of these steps.  When problems occ

2013-02-07 14:11:46 1588

原创 客户端和server网络中断后提交的批处理还会运行吗?

在网上看到有人提到这样的问题:客户端和server网络中断后提交的批处理还会运行吗? 这个问题涉及到了SQL server TCP连接的keepAlive。从微软的Blog找到详细的解释: 简单说,keepalive 是SQLserver在建立每一个TCP连接的时候,指定了TCP协议的keepaliveinterval和keepalivetime参数。这样对每个TCP连接,如果

2013-02-07 11:44:59 1454

原创 SQL Server 智能感知IntelliSense 不起作用

有时候发现SQL Server的智能感知不起作用,可以尝试通过下面的办法解决: 1.确保正确的开启智能感知  启用:(Auto List Members) 2.对于一些新创建的Object,无法智能提示,可以通过刷新本地缓存的方法解决:  更多信息参考:Troubleshooting IntelliSense (SQL Server Manage

2013-02-06 17:06:45 6310

原创 使用Filegroup的一些好处

针对于大的数据库,使用Filegroup可以给我们带来性能和维护上的诸多好处,比如: 1.   遇到磁盘瓶颈时可以增加磁盘,将经常访问的一些数据量大的表分散到不同的文件组,分散到不同的磁盘,这样可以提供IO的性能。 2.   如果非聚集索引非常大,可以考虑将非聚集索引和表分开放到不同的Filegroup,从而分散IO。 3.   如果数据库同时存在只读和读写的表,可以考虑将

2013-02-06 09:53:08 3275

原创 Msg 3159 The tail of the log for the database "" has not been backedup

还原数据库文件组的时候出现下面的错误: Msg 3159, Level 16, State 1, Line 1The tail of the log for the database "testfile" has not been backedup. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work

2013-02-05 09:44:57 1727

转载 dbcc extentinfo 查看磁盘分区 分析压缩数据库对象

DBCC EXTENTINFO命令用于查询某个数据库、或者某个数据对象(主要是数据表)的盘区分配情况,然后计算每个对象理论上区的数目和实际数目,如果实际数目远大于理论的数目,那这个对象就是碎片过多,管理员应该要考虑重建对象 建立下面的存储过程帮助分析:create table extentinfo ( [file_id] smallint, pa

2013-02-04 20:27:20 1308

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关注的人

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