SABulkCopy(String, SABulkCopyOptions) constructor

Initializes an SABulkCopy object.

Syntax
Visual Basic

Public Sub New( _
   ByVal connectionString As String, _
   ByVal copyOptions As SABulkCopyOptions _
)
C#

public  SABulkCopy(
   string  connectionString,
   SABulkCopyOptions copyOptions
);
Parameters
  • connectionString   The string defining the connection that will be opened for use by the SABulkCopy instance. A connection string is a semicolon-separated list of keyword=value pairs.

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

Remarks

This syntax opens a connection during WriteToServer using connectionString. The connection is closed at the end of WriteToServer. The copyOptions parameter has the effects described above.

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

See also