Timeout expired with SqlBulkCopy

前端 未结 3 1382
我在风中等你
我在风中等你 2020-12-16 10:06

I\'m using SqlBulkCopy to restore tables from xml backups. One of the table backup is ~200MB large and has a lot of records.

I\'m having error:

Timeo         


        
3条回答
  •  清歌不尽
    2020-12-16 10:24

    You probably need to increase the timeout. Try increasing the value of sqlBulkCopy.BulkCopyTimeout from the default which is 30 seconds.

提交回复
热议问题