1/7/2024 0 Comments Sqlbulk copy logWhen there is an error while sending data to the server, the current batch (as specified by BatchSize) will be rolled back. The number of rows that are rolled back when one fails depends on several things: If MARS is enabled, you can interleave calls to WriteToServer with other commands in the same connection. If multiple active result sets (MARS) is disabled, WriteToServer makes the connection busy. WriteToServerAsync(DataTable, DataRowState, CancellationToken) WriteToServerAsync(DataTable, CancellationToken) The asynchronous version of WriteToServer(DataTable, DataRowState), which copies only rows that match the supplied row state in the supplied DataTable to a destination table specified by the DestinationTableName property of the SqlBulkCopy object. WriteToServerAsync(DataTable, DataRowState) WriteToServerAsync(DataRow, CancellationToken) WriteToServerAsync(DbDataReader, CancellationToken) The asynchronous version of WriteToServer(DataTable), which copies all rows in the supplied DataTable to a destination table specified by the DestinationTableName property of the SqlBulkCopy object. The asynchronous version of WriteToServer(DataRow), which copies all rows from the supplied DataRow array to a destination table specified by the DestinationTableName property of the SqlBulkCopy object. The asynchronous version of WriteToServer(DbDataReader), which copies all rows from the supplied DbDataReader array to a destination table specified by the DestinationTableName property of the SqlBulkCopy object. Exceptions will be reported via the returned Task object. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. The asynchronous version of WriteToServer(IDataReader), which copies all rows in the supplied IDataReader to a destination table specified by the DestinationTableName property of the SqlBulkCopy object. In this article Overloads WriteToServerAsync(IDataReader, CancellationToken) An asynchronous version of WriteToServer, which copies all rows from a data source to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |