百度首页 | 百度空间
 
文章列表
 
您正在查看 "Sql Server" 分类下的文章

2008-03-10 18:04

If you have ever performed a SELECT COUNT(*) on a very large table, you know how long it can take. For example, when I ran the following command on a large table I manage:

SELECT COUNT(*) from <table_name>

It took 1:09 to count 10,725,948 rows in the table. At the same time, SQL Server had to perform a lot of logical and physical I/O in order to perform the count, chewing up important SQL Server resources.

A much faster, and more efficient, way of counting row

类别:Sql Server | 评论(0) | 浏览()
 
2008-01-23 12:31
来源:www.sql-server-performance.com/articles/per/bm_performance_dashboard_2005_p1.aspx
很好的sqlserver 2005 性能诊断工具
注意要先安装Sqlserver2005 SP2

You can download SQL Server 2005 Service Pack 2 from:

http://www.microsoft.com/technet/prodtechnol/s

类别:Sql Server | 评论(0) | 浏览()
 
2008-01-23 12:15
参考地址:www.sql-server-performance.com/articles/per/online_indexing_2005_p1.aspx


Online Indexing对于7*24运行的数据库来说,是个很不错的方案,可以在不影响用户查询的情况下在线重建索引等(仅企业版支持)。

在线重建索引:
ALTER INDEX ALL on HumanResources.Employee REBUILD WITH (ONLINE=ON)
在线删除Cluster索引:
类别:Sql Server | 评论(0) | 浏览()
 
2007-12-20 15:19

When creating a distributed partitioned view in SQL Server 2000 or 2005, set the "lazy schema validation" option true for each linked server participating in your distributed partitioned views. This acts to optimize performance by ensuring that the query processor does not request meta data

类别:Sql Server | 评论(0) | 浏览()
 
2007-11-18 13:50
[
     TOP (expression) [PERCENT]
     [ WITH TIES ]
]

expression

    指定返回行数的数值表达式。如果指定了 PERCENT,则 expression 将隐式转换为 float 值;否则,它将转换为 bigint。

    在 INSERT、UPDATE 和 DELETE 语句中,需要使用括号来分隔 TOP 中的 expression。为保证向后兼容性,支持在 SELECT 使用不包含括号的 TOP expression,但不推荐这种用法。

    如果查询包含
类别:Sql Server | 评论(1) | 浏览()
 
     
 
 
文章分类
 
 
 
 
 
web2.0(12)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Php(7)
 
 
 
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   
 

谢谢~~~~~~~
 
 

是这样吗?
 

请问一下,你知道怎么样把iftp命令的图形化结果只取出文字部分然后隔一段时间保存...
 
     


©2008 Baidu