SqlBulkCopy Constructor

SqlBulkCopy Constructor

 

Initializes a new instance of the SqlBulkCopy class.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodSqlBulkCopy(SqlConnection)

Initializes a new instance of the SqlBulkCopy class using the specified open instance of SqlConnection.

System_CAPS_pubmethodSqlBulkCopy(SqlConnection, SqlBulkCopyOptions, SqlTransaction)

Initializes a new instance of the SqlBulkCopy class using the supplied existing open instance of SqlConnection. The SqlBulkCopy instance behaves according to options supplied in the copyOptions parameter. If a non-null SqlTransaction is supplied, the copy operations will be performed within that transaction.

System_CAPS_pubmethodSqlBulkCopy(String)

Initializes and opens a new instance of SqlConnection based on the supplied connectionString. The constructor uses the SqlConnection to initialize a new instance of the SqlBulkCopy class.

System_CAPS_pubmethodSqlBulkCopy(String, SqlBulkCopyOptions)

Initializes and opens a new instance of SqlConnection based on the supplied connectionString. The constructor uses that SqlConnection to initialize a new instance of the SqlBulkCopy class. The SqlConnection instance behaves according to options supplied in the copyOptions parameter.

Return to top
Show:
© 2016 Microsoft