SuspendIndexing Property
后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The SuspendIndexing property controls index update when the ImportData method of the Table object is used to copy data to Microsoft SQL Server.
语法
object.SuspendIndexing [=value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetSuspendIndexing(LPBOOL pRetVal);
HRESULT SetSuspendIndexing(BOOL NewValue);
注释
If TRUE, indexes are dropped before the bulk-copy operation is started and re-created after the bulk-copy operation is completed.
If FALSE, no changes are made to indexing.
![]() |
---|
Indexes that enforce referential or data integrity constraints, such as those implemented by SQL Server PRIMARY KEY or UNIQUE key constraints, are not dropped even if SuspendIndexing is TRUE. |