如何在 SQL 调度程序或 Windows 调度程序中安排 SSIS 包作业?

如何在 SQL 调度程序或 Windows 调度程序中安排 SSIS 包作业?

问题描述:

我创建了一个 (SSIS) 包,其中包含用于从表中传输数据的 SQL 过程.根据 SSIS 包,它采用 .dtsx 格式.现在如何将其添加到计划中,使其每 3 个月自动运行一次.我无法通过谷歌获得任何信息.

I have created a (SSIS) package which contains SQL procedures for transfer of data from tables. It is in .dtsx format as per SSIS package. Now how to add this to a schedular so that it runs automatically after every 3 months. I am unable to get any information through google.

Windows 也有一个调度程序,但它通过调度程序只运行 .exe 文件.我可以在 .dtsx 和 .exe 之间转换吗?

The windows also has a scheduler but it runs only .exe files through scheduler. Can I convert between .dtsx to .exe?

还有如何将其添加到 SQl 服务器调度程序中?请帮忙.任何链接也将很有用.

Also how to add this to the SQl server scheduler? Please help. Any link will be useful also.

你可以使用 dtexec 命令来运行你的 SSIS 包,就像在 dos 命令提示符下一样

You can run your SSIS package using dtexec command like from dos command prompt

dtexec /f %PackagePath%\%PackageName% /conf %PackagePath%\%ConfigName%

您只需将此命令添加到批处理文件 (.bat) 中,并在您的调度程序中安排该命令.

you just add this command to a batch file (.bat) and have that scheduled in your scheduler.

在 DTEXEC 实用程序上查看此链接

Check this link on DTEXEC utility

http://msdn.microsoft.com/en-us/library/ms162810.aspx

希望这会有所帮助.