Export (0) Print
Expand All
Expand Minimize

SuspendIndexing Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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]

object

An expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Boolean

Read/write

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.

ms138423.note(en-US,SQL.90).gifNote:
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.

Community Additions

ADD
Show:
© 2014 Microsoft