是否可以在执行SQL任务上指定超时值?

Sre*_*mar 2 ssis

我有一个计划作为工作的存储过程.执行作业时发生超时过期问题.我将通过调用执行SQL任务中的存储过程或将存储过程脚本应用到脚本任务来实现此存储过程到SSIS包.我应该怎么做/申请避免套餐中的超时到期问题?有超时的财产吗?

小智 5

是的,TimeOut执行SQL任务中有一个属性.它位于名为General的第一部分中.请参阅屏幕截图#1.理想情况下,您应该对存储过程进行微调.

Microsoft TechNet文档声明了 TimeOut属性的以下定义:

Specify the maximum number of seconds the task will run before timing out. 
A value of 0 indicates an infinite time. The default is 0.

Note: Stored procedures do not time out if they emulate sleep functionality by 
providing time for connections to be made and transactions to complete that is 
greater than the number of seconds specified by TimeOut. However, stored 
procedures that execute queries are always subject to the time restriction 
specified by TimeOut.
Run Code Online (Sandbox Code Playgroud)

希望有所帮助.

截图:

#1:执行SQL任务TimeOut属性

执行SQL任务TimeOut属性