Initializes an SABulkCopy object.
Visual Basic
Public Sub New( _
ByVal connectionString As String, _
ByVal copyOptions As SABulkCopyOptions _
)
C#
public SABulkCopy(
string connectionString,
SABulkCopyOptions copyOptions
);
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.
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.