A bitwise flag that specifies one or more options to use with an instance of the ULBulkCopy class.
Visual Basic
Public Enum ULBulkCopyOptions
C#
public enum ULBulkCopyOptions
The ULBulkCopyOptions enumeration is used when you construct a ULBulkCopy instance to specify how the WriteToServer methods will behave.
Restrictions: The ULBulkCopyOptions class is not available in the .NET Compact Framework 2.0.
Member name | Description | Value |
---|---|---|
Default |
Specifying only this causes the default behavior to be used. | 0 |
KeepIdentity |
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. | 1 |
UseInternalTransaction |
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 a ULTransaction object to the constructor, a System.ArgumentException occurs. | 2 |