Share via

How to Schedule an SSIS package using Windows Task Scheduler ?

minh tran 216 Reputation points
2022-08-15T13:54:25.953+00:00

Hello,
I am new to Window task Scheduler and I need your help.

I have SSIS pacgae in Visual studio 2015 that produce outputs and I want to write those outputs to a shared drive file folder.

I would like to seek your help if you may know

  1. If it can be done, how to use the Window task Scheduler to write the output from SSIS package to a shared
    drive file folder with login and password permission ?
    Could you show me the steps since I am begginner ?  
    

Many Thanks,
Du

SQL Server Integration Services
0 comments No comments

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,551 Reputation points
    2022-08-17T09:30:40.557+00:00

    Hi @minh tran ,

    You cannot run a SSIS package (.dtsx) without installing the SQL Server integration Services. The minimum requirements are the SSIS client tools and the DTEXEC utility so you must install the Integration Services shared feature from the SQL Server install media.

    In other word, you may need to use sql agent job in SQL Server to schedule an SSIS package without using Windows Task Scheduler.

    Reference here: sql-server-agent-jobs-for-packages

    If you only want to Schedule an SSIS package using Windows Task Scheduler, please refer to below thread.

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/07e59dcd-7547-47b2-bcdd-3e188eef619a/how-to-run-a-ssis-package-using-bat-file?forum=sqlintegrationservices

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?


  2. Michael Taylor 61,221 Reputation points
    2022-08-15T14:15:55.177+00:00

    Yes you can use Task Scheduler for that but I don't know why you would. SQL already has support for running SSIS jobs on a schedule. You don't need TS for this and that would just be adding an extra thing to configure.

    As for copying output somewhere else you should do that within SSIS as well in my opinion. I'm not sure what you mean by output but I'm guessing you're producing some sort of files. In that case have SSIS copy the files elsewhere when done. This keeps everything together in one package.

    If you absolutely need to do work outside SSIS then you can refer to the older article here. It talks about how to do it. At this point though if you have post-SSIS steps to do then you might need to wrap the SSIS call in a script. But I would try doing all this in SSIS first.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.