Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SABulkCopy class » SABulkCopy constructors


SABulkCopy(SAConnection, SABulkCopyOptions, SATransaction) constructor

Initializes an SABulkCopy object.

Visual Basic

Public Sub New( _
   ByVal connection As SAConnection, _
   ByVal copyOptions As SABulkCopyOptions, _
   ByVal externalTransaction As SATransaction _

public  SABulkCopy(
   SAConnection connection,
   SABulkCopyOptions copyOptions,
   SATransaction externalTransaction
  • connection   The already open SAConnection that will be used to perform the bulk-copy operation. If the connection is not open, an exception is thrown in WriteToServer.

  • copyOptions   A combination of values from the SABulkCopyOptions enumeration that determines which data source rows are copied to the destination table.

  • externalTransaction   An existing SATransaction instance under which the bulk copy will occur. If externalTransaction is not NULL, then the bulk-copy operation is done within it. It is an error to specify both an external transaction and the UseInternalTransaction option.


Restrictions: The SABulkCopy class is not available in the .NET Compact Framework 2.0.

See also