WriteToServerAsync(DataTable, DataRowState, CancellationToken) method
Copies only rows that match the supplied row state 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.
- rowState
- A value from the System.Data.DataRowState enumeration. Only rows matching the row state are copied to the destination.
- cancellationToken
- The cancellation instruction. A P:System.Threading.CancellationToken.None value in this parameter makes this method equivalent to HanaBulkCopy.WriteToServerAsync(System.Data.DataTable, System.Data.DataRowState).
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.