如何确定创建索引的剩余时间

时间:2014-05-19 13:31:38

标签: sql-server-2008 sql-server-2008-r2

我在一个包含100M行(35GB)的表上创建一个非聚簇索引。该过程大约在10个小时前开始,数据库仍处于锁定状态。我需要确定为客户正确设定期望所需的时间。

以下是我运行的代码:

USE [cpr_cc]
GO
CREATE NONCLUSTERED INDEX [idx_wpi_documents] ON [dbo].[p_Patient_WP_Item] 
(
    [item_type] ASC,
    [context_object] ASC,
    [created] ASC
)
INCLUDE ( [patient_workplan_item_id]) 
WHERE item_type = 'Document'
WITH (PAD_INDEX  = ON, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = ON, IGNORE_DUP_KEY = OFF, DROP_EXISTING = ON, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 85) ON [Workflow]
GO

谢谢!

0 个答案:

没有答案