Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在使用 Windows 任务计划程序计划 SSIS 包。计划任务每小时都会创建一个新的包实例并开始执行。我们需要确保在下一次执行开始之前终止前一个实例。是否可以在特定时间间隔后从包内本身终止包执行?
在 Windows 任务计划程序中,如果您转到任务的“设置”选项卡,则会有一个复选框,其中包含“如果任务运行时间超过:则停止任务”选项。
将此设置为所需的时间间隔,任务计划程序将在指定时间过去后终止进程。