SqlBulkCopy.WriteToServer(DbDataReader) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies all rows from the supplied DbDataReader array to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.
public:
void WriteToServer(System::Data::Common::DbDataReader ^ reader);
public void WriteToServer(System.Data.Common.DbDataReader reader);
member this.WriteToServer : System.Data.Common.DbDataReader -> unit
Public Sub WriteToServer (reader As DbDataReader)
Parameters
- reader
- DbDataReader
A DbDataReader whose rows will be copied to the destination table.