加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

.net – SqlBulkCopy超时

发布时间:2020-12-15 18:44:52 所属栏目:asp.Net 来源:网络整理
导读:我正在使用SqlBulkCopy从xml备份还原表。其中一个表备份大约200MB,有很多记录。 我有错误: Timeout expired.The timeout period elapsed prior to completion of the operation or the serveris not responding. 解决方法 你可能需要增加超时时间。尝试从
我正在使用SqlBulkCopy从xml备份还原表。其中一个表备份大约200MB,有很多记录。

我有错误:

Timeout expired.
The timeout period elapsed prior to completion of the operation or the server
is not responding.

解决方法

你可能需要增加超时时间。尝试从默认值为30秒增加值为 sqlBulkCopy.BulkCopyTimeout

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读