查看文章 |
Online Indexing in SQL Server 2005
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索引: DROP INDEX PK_Employee_EmployeeID on [HumanResources.Employee] WITH (ONLINE=ON) 后面有需注意的几点: 1、备份日志、截断日志 2、SORT_IN_TEMPDB=on 3、数据库恢复模式为简单或者大容量日志 4、不要运行使用该索引的外部事物 |
最近读者: