SSIS报错:Timeout expired解决办法

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

在这里插入图片描述
出现这个错误说明执行时间超时或者连接超时

CommandTimeout默认为30秒

SqlCommand.CommandTimeout
获取或设置在终止执行命令的尝试并生成错误之前的等待时间。
等待命令执行的时间(以秒为单位)。默认为 30 秒。

SqlConnection.ConnectionTimeout
获取在尝试建立连接时终止尝试并生成错误之前所等待的时间。
等待连接打开的时间(以秒为单位)。默认值为 15 秒。

这里出现的错误是因为数据量大,执行命令时间过长,只需将CommandTimeout时间设置大些就解决此问题。

如果设置为0,将无限等待,没有Timeout限制

猜你喜欢

转载自blog.csdn.net/lz6363/article/details/84373901