我正在使用SqlBulkCopy从xml备份中恢复表.其中一个表备份约为200MB,有很多记录.
我有错误:
Timeout expired.
The timeout period elapsed prior to completion of the operation or the server
is not responding.
我正在使用SqlBulkCopy从xml备份中恢复表.其中一个表备份约为200MB,有很多记录.
我有错误:
Timeout expired.
The timeout period elapsed prior to completion of the operation or the server
is not responding.
您可能需要增加超时时间.try 将默认值(30秒)增加到sqlBulkCopy.BulkCopyTimeout
.