A bitwise flag that specifies one or more options to use with an instance of SABulkCopy.
Public Enum SABulkCopyOptions
public enum SABulkCopyOptions
Member name | Description | Value |
---|---|---|
Default |
Specifying only this value causes the default behavior to be used. By default, triggers are enabled. |
0x0 |
DoNotFireTriggers |
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. |
0x1 |
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. |
0x2 |
TableLock |
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. |
0x4 |
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 an SATransaction object to the constructor, a System.ArgumentException occurs. |
0x8 |
The SABulkCopyOptions enumeration is used when you construct an SABulkCopy object to specify how the WriteToServer methods will behave.
The SABulkCopyOptions class is not available in the .NET Compact Framework 2.0.
The CheckConstraints and KeepNulls options are not supported.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |