TdsBulkLoadResult Class
Represents the outcome of a bulk load.
public sealed class TdsBulkLoadResultProperties
| Name | Description |
|---|---|
| Error | Gets the error to return to the client, or null when the rows were accepted. |
Error
TdsBulkLoadResult.csGets the error to return to the client, or null when the rows were accepted.
public TdsQueryError? Error { get; }Property value
Methods
| Name | Description |
|---|---|
| FromError(TdsQueryError) | Creates a result that rejects the rows: SqlBulkCopy.WriteToServer throws a SqlException with the error. |
| Success() | Creates a result that accepts the rows. The server reports their count to the client. |
FromError(TdsQueryError)
TdsBulkLoadResult.csCreates a result that rejects the rows: SqlBulkCopy.WriteToServer throws a SqlException with the error.
public static TdsBulkLoadResult FromError(TdsQueryError error)Success()
TdsBulkLoadResult.csCreates a result that accepts the rows. The server reports their count to the client.
public static TdsBulkLoadResult Success()