我正在使用这个解决方案向数据库中插入大约3百万条记录。最终,当应用程序插入记录一段时间后(我的上次运行持续了约4个小时),会出现以下SqlException的超时错误:
提前致谢!
如何处理这个异常?有没有办法预防它的发生,或者我应该捕获这个异常?"SqlExcepetion: Timeout expired. The timeoutperiod elapsed prior to completion of the operation or the server is not responding."
提前致谢!