2011-07-27 44 views
2

我有一個存儲過程被安排爲一項工作。超時過期問題發生在執行作業計劃時。我將通過調用執行SQL任務中的存儲過程或將存儲過程腳本應用於腳本任務來實現此存儲過程至SSIS包。我該怎麼做/申請避免套餐中的超時到期問題?是否有與超時有關的財產?是否可以在執行SQL任務上指定超時值?

回答

4

是的,執行SQL任務上有一個TimeOut屬性。在名爲General的第一部分中是正確的。請參閱屏幕截圖#1。理想情況下,你應該對存儲過程進行微調。

Microsoft TechNet文檔狀態爲超時屬性如下定義:

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. 

希望有所幫助。

截圖:

#1:執行SQL任務超時屬性

Execute SQL Task TimeOut Property

相關問題