executing a batch command through SSIS Job

后端 未结 2 894
长发绾君心
长发绾君心 2021-01-04 10:31

I need to execute an batch file through SSIS job. previously we used to do this in cmd prompt, is there any way that we can run batch file through ssis job

相关标签:
2条回答
  • 2021-01-04 10:53

    First of all, consider if you really need to execute a batch file. Maybe there is a built in way to achieve what you need. For example if you are just moving/renaming files then you can use the FileSystemTask

    Otherwise, you can use the ExecuteProcessTask

    • This page shows all the options that can be configured for this task, i.e. the path to the batch file, arguments, etc.
    • This page shows how to set those properties.
    0 讨论(0)
  • 2021-01-04 10:54

    Use an Execute Process Task in your Control Flow to do this.

    • Create a new package in SSIS
    • You will start with the Control Flow open
    • Drag an Execute Process Task from the Toolbox (if the Toolbox is not open, open it with Menu -> View -> Toolbox) to the Control Flow
    • You can set the batch file path in RightMouseButton on the Task -> Edit... -> Process -> Executable

    For further instructions on SSIS go to e.g. Microsoft

    0 讨论(0)
提交回复
热议问题