| |
MS SQL Server Administration: Scheduling Packages In SQL Server 2005
Package Schedule
By using the SQL Server Agent, there can be scheduling of packages to run automatically. For the packages to be scheduled, it is necessary to store them either in the MSDB or the file system in the SSIS package store.
Steps for Scheduling
Let us suppose that for updating the status, there is a need to run the status at 6 pm everyday. Then the following steps are required for scheduling a package for execution:
- Open SSMS.
- Connect to the SQL Server Database Engine.
- Right-click on SQL Server Agent and select New, Job.
- In the General options page, enter the name of the job, in this example Daily Patient Status Update.
- Select the Steps option page.
- Click New for creating a new step.
- Enter the Step name “Update Patient Status”.
- In the Type pull-down, select SSIS Package.
- In the Package Source pull-down, select the SSIS package store.
- In the Server pull-down, select the server name.
- Click on the Package selection button to the right of the Package field.
- Browse the “Select an SSIS Package” window to find the package imported earlier.
- Click OK.
- Click OK for saving the step.
- Select the Schedules option page.
- Click New for creating a new job schedule.
- In the Name field, enter “Daily at 6pm”.
- In the Occurs pull-down, select Daily.
- Change the Daily Frequency to 6:00:00 PM.
- Click OK for saving the schedule.
- Click OK for saving the job.
Now everyday at 6 pm, the SSIS package will be run by the job. The job saved in the database can be reviewed in the Jobs folder located within the SQL Server Agent. This can also be tested by right click on the Job and then select Start Job.
Package Series
A series of packages in sequential steps can be run by the jobs. A bigger task can thus be completed by such chaining of the packages together.
|
|