SqlBulkCopy.WriteToServerAsync Method (IDataReader)
Assembly: System.Data (in System.Data.dll)
Callingmultiple times for the same instance before task completion.
Calling WriteToServer for the same instance before task completion.and
The connection drops or is closed duringexecution.
Returned in the task object, the SqlBulkCopy object was closed during the method execution.
Returned in the task object, there was a connection pool timeout.
Returned in the task object, the SqlConnection object is closed before method execution.
Context Connection=true is specified in the connection string.
Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see Asynchronous Programming.
Available since 4.5