9.7. Scheduling a Package
The primary way to schedule packages in SSIS is with SQL Server Agent, which ships with the SQL Server database engine. If you didn't have a database engine in your environment, then you must use something like Task Scheduler, which ships with Windows. Scheduling a package with SQL Server Agent is much simpler and gives you much more flexibility.
The first step to scheduling a package is to connect to the database engine. Ensure that the SQL Server Agent service is started. Right-click Jobs under the SQL Server Agent tree and select New Job. The New Job dialog box will open, where you can create a new job.
In the General page, type the name of your job such as Execute Package. In the Steps page, click New, which opens the New Job Step dialog box. Type Execute Sample Package for the Step name property in the General page, as shown in Figure 9-14. Then, select SQL Server Integration Services Package as the type of step. For the time being, use the default SQL Agent Service Account as the Run as account. This means that the account that starts SQL Server Agent will execute the package, and sources and destinations in your package will use Windows Authentication with that account if they're set up to use Windows Authentication.
Figure 9-14. The General page
For the Package source, select the SSIS Package Store and point to a valid SSIS service. Pick any ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access