Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
A bitwise flag that specifies one or more options to use with an instance of SABulkCopy.
Public Enum SABulkCopyOptions
public enum SABulkCopyOptions
Specifying only this value causes the default behavior to be used.
By default, triggers are enabled.
When specified, triggers are not fired.
Disabling triggers requires DBA permission. Triggers are disabled for the connection at the start of WriteToServer and the
value is restored at the end of the method.
When specified, the source values to be copied into an identity column are preserved.
By default, new identity values are generated in the destination table.
When specified the table is locked using the command LOCK TABLE table_name WITH HOLD IN SHARE MODE.
This lock is in place until the connection is closed.
When specified, each batch of the bulk-copy operation is executed within a transaction.
When not specified, transaction aren't used. If you indicate this option and also provide an SATransaction object to the constructor,
a System.ArgumentException occurs.
The SABulkCopyOptions enumeration is used when you construct an SABulkCopy object to specify how the WriteToServer methods
The SABulkCopyOptions class is not available in the .NET Compact Framework 2.0.
The CheckConstraints and KeepNulls options are not supported.