WriteToServerAsync(DataTable, CancellationToken) method

Copies only rows in the supplied System.Data.DataTable to a destination table specified by the HanaBulkCopy.DestinationTableName property of the HanaBulkCopy object. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses.

Parameters

table
A System.Data.DataTable whose rows are copied to the destination table.
cancellationToken
The cancellation instruction. A P:System.Threading.CancellationToken.None value in this parameter makes this method equivalent to HanaBulkCopy.WriteToServerAsync(System.Data.DataTable).

Returns

A task representing the asynchronous operation.

Exceptions

HanaException class
Returned in the task object, any error returned by the SAP HANA database server that occurred while copying data.

Remarks

Exceptions are reported via the returned Task object.