SqlBulkCopy::WriteToServer Method (DbDataReader^)

.NET Framework (current version)
 

Copies all rows from the supplied DbDataReader array to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.

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

public:
void WriteToServer(
	DbDataReader^ reader
)

Parameters

reader
Type: System.Data.Common::DbDataReader^

A DbDataReader whose rows will be copied to the destination table.

.NET Framework
Available since 4.6
Return to top
Show: