- 博客(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
2009-10-13
Sqlserver性能调整
2009-09-27
使用CPU计数器监视SQL Server性能的
2009-09-27
inside-microsoft-r-sql-server-tm-2005-the-storage-engine
2009-09-27
SQL SERVER 2005
2009-09-27
SQL+Server+2005技术内幕-存储引擎1-5章.pdf
2009-09-24
Microsoft Press - Inside Microsoft SQL Server 2005 Query Tuning and Optimization (Sep 2007).chm
2009-09-24
Inside Microsoft SQL Server 2005: T-SQL Programming
2009-09-24
SQL.Server.2005.Administration
2009-05-25
TSQL Query Tuning
2009-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人