SABulkCopy(SAConnection, SABulkCopyOptions, SATransaction) constructor

Initializes an SABulkCopy object.

Syntax
Visual Basic

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

public  SABulkCopy(
   SAConnection connection,
   SABulkCopyOptions copyOptions,
   SATransaction externalTransaction
);
Parameters
  • 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.

Remarks

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

See also