2 out of 2 rated this helpful - Rate this topic

SqlBulkCopy Constructor

Initializes a new instance of the SqlBulkCopy class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method SqlBulkCopy(SqlConnection) Initializes a new instance of the SqlBulkCopy class using the specified open instance of SqlConnection.
Public method SqlBulkCopy(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.
Public method SqlBulkCopy(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.
Public method SqlBulkCopy(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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.