## Scheduled jobs in

When you use a supported edition of SQL Server 2008 Standard or Enterprise, includes a number of preconfigured scheduled jobs, most of which are enabled by default. Some of these jobs are also configurable (see the summary table below).

In addition, Windows Task Scheduler includes preconfigured jobs for the Application Modules database.

If your product installation uses a supported edition of , all scheduled jobs are included in the Windows Task Scheduler. See "Scheduled Jobs in Task Scheduler" on page 1 for further information.

If your product uses a SQL Server Standard or Enterprise edition, the following scheduled jobs are available through .

Database | Scheduled Job | Enabled by Default | Default Time | Configurable
--- | --- | --- | --- | ---
ION database (ION_Data) | Archive | No | 12:00 AM, 1st Saturday of every third month or of every quarter (depending on the version of SQL Server that the product uses) | Yes
Backup | Yes | Weekly at 12:00 AM every Friday | Yes
Maintenance | Yes | Daily at 2:00 AM | No
Network Configuration database (ION_Network) | Backup | Yes | Daily at 1:00 AM | Yes
Maintenance | Yes | Daily at 7:30 AM | No
System Events database (ION_SystemLog) | Trim | Yes | Daily at 1:30 AM | Yes
Maintenance | Yes | Daily at 7:05 AM | No

##### Viewing schedule information

To view schedule information in :

For all databases, right-click Scheduled Jobs and select Schedule Information, or

For a specific database, right-click the database and select Schedule Information.

The Scheduled Jobs dialog opens. This dialog lists the following information for scheduled jobs: database name, job type, whether or not the job is enabled, the last run date and the next run date.

To view the scheduled jobs for the Application Modules database in Task Scheduler, see "Opening Task Scheduler to view scheduled jobs" on page 1.

##### Editing scheduled jobs

You can edit a scheduled job in in one of the following ways:

Double-click a scheduled job listed under Scheduled Jobs in .

Right-click a database listed under Scheduled Jobs and select the job you want to edit.

Right-click Scheduled Jobs and select the job you want to edit.

The scheduled job’s dialog opens. See "Scheduled Archive" on page 1, "Scheduled Trim" on page 1 and "Scheduled Backup" on page 1 for information about editing these scheduled jobs.

Note

You cannot configure scheduled Maintenance jobs.

To edit the scheduled jobs for the Application Modules database in Task Scheduler, see "Editing scheduled jobs in Task Scheduler" on page 1.

##### Viewing history for a scheduled job

To view the history of a scheduled job in , right-click a database, select Job History then one of the specific jobs in the menu to open the Scheduled Job History dialog.

The run date, status (successful or unsuccessful), and duration are available for all scheduled jobs.

Select a job from the list to view further information under Errors or messages from selected task step field.

Select Hide successful tasks to filter out completed jobs from the list.

Click Clear All to clear the job history for the selected scheduled job.

To view the job history of the Application Modules database in Task Scheduler, click a job in the list and then click the History tab.

### Scheduled archive

Right-click Scheduled Jobs or and select Archive to open the Scheduled archive dialog.

Note

When the product is first installed, Scheduled Archive is disabled by default. You must open the Scheduled archive dialog and select Schedule Enabled to enable it.

A | You must select this check box to enable the scheduled archive.

##### Data types

A scheduled archive is preconfigured to archive all data types and to trim each of the data types after the archive is complete. Clear the Trim after archive check box for a data type if you only want to perform an archive without subsequently deleting that data.

notice

loss of data

Backup or archive data before trimming a database.

Failure to follow these instructions can result in permanent loss of data.

##### Amount of live data

This setting determines the number of complete months of live data that you want to keep in the database.

##### Archive interval

Select one of the following options: Monthly, Bi-monthly (every 2 months), Quarterly (every 3 months), Semiannually (every 6 months), Annually, Every 2 years, Every 3 years, Every 4 years, and Every 5 years.

Note

The scheduled jobs use the year and month in the archive file name. If you use SQL Server Management Studio or SQL Server Enterprise Manager to schedule the database archives, do not set the archive frequency to more than once a month to avoid unsuccessful database archiving.

##### Schedule

You can select any day of the week for your scheduled archive (the default is Saturday). The archive is performed at the specified time on the first occurrence of that day in the month. For example, if you configure the scheduled archive to occur monthly on Sunday at 5:30:00 AM, then archives the database at 5:30 AM on the first Sunday of every month.

### Scheduled maintenance

The schedule for the maintenance jobs is pre-configured and cannot be changed. To view the history for a maintenance job, right-click the database, select Job History > Maintenance. See "Viewing History for a Scheduled Task" on page 1 for more information.

There are a number of actions that are performed on the database when a maintenance job is executed. The following is an ordered breakdown of a scheduled maintenance:

Check database fragmentation and defragment if the fragmentation level is more than 10%.

Update statistics for all the tables in the database.

Send an email alert if any maintenance step is unsuccessful.

The maintenance schedule for each database is as follows:

maintenance job occurs daily at 2:00 AM.

maintenance job occurs daily at 7:05 AM.

maintenance job occurs daily at 7:30 AM.

(Note that the disk usage monitor starts at 7:00 AM and takes only a few seconds to complete.)

### Scheduled trim

Right-click Scheduled Jobs or and select Trim to open the Scheduled Trim dialog.

Select Schedule enabled if you want to enable the scheduled trim.

The System Events database has the scheduled trim job configured and enabled by default.

##### Changing the schedule

Click Change in the Schedule section. The Edit Schedule dialog opens where you can reconfigure the frequency and time of the scheduled trim.

The Edit Schedule dialog differs depending on what you select in the Occurs section.

Daily: Set the frequency in days. For example, to set the trim to occur every seven days, set the frequency to 7.

Weekly: Set the frequency in weeks and select the days of the week on which you want the trim to occur. You can select multiple days of the week. For example, to set the trim to occur every two weeks on Monday and Thursday, set the frequency to 2 and select Monday and Thursday from the list of days.

Monthly: Set the frequency then select Fixed Day or Relative Day to set the day of the month on which the trim occurs.

Frequency: Click Select Months to select the months in which you want the trim to occur or set the Frequency in number of months.

Fixed Day: The trim occurs on the specified date at the frequency specified (in months). For example, to set the trim to occur on the 15th day of every month, select every month (or set Frequency to 1) then set Fixed Day to 15.

Relative Day: The trim occurs on the specified day of the month at the specified frequency (in months). For example, to set the trim to occur on the second Sunday of every third month, set Frequency to 3 (or select which months you want to trim to occur in) and select 2nd and Sunday from the Relative day dropdown lists.

### Scheduled backup

Right-click Scheduled Jobs, or and select Backup to open the Scheduled Backup dialog.

Both the and the databases have scheduled backup jobs configured and enabled by default. The save location is a different folder for each database, although both databases share the same parent directory ...\\config\cfg\DBBackups\.

From the Database to backup list, select the database for which you want to configure the scheduled backup.

In the Save backup to field, enter the location where you want to save the backups.

In Number of backups to keep, specify the number of backups — 1 to 4 — that keeps available.

Select Schedule enabled if you want to enable the scheduled backup.

##### Changing the Schedule

Click the Change button in the Schedule section. The Edit Schedule dialog appears where you can reconfigure the frequency and time of the scheduled backup.

Note

Do not specify the same start time for scheduled backups of the and the databases. This can cause problems with the job.

The Edit Schedule dialog differs depending on what you select in the Occurs section.

Daily: Set the frequency in days. For example, to set the backup to occur every seven days, set the frequency to 7.

Weekly: Set the frequency in weeks and select the days of the week on which you want the backup to occur. You can select multiple days of the week. For example, to set the backup to occur every two weeks on Monday and Thursday, set the frequency to 2 and select Monday and Thursday from the list of days.

Monthly: Set the frequency then select Fixed Day or Relative Day to set the day of the month on which the trim occurs.

Frequency: Depending on your version of SQL Server, click Select Months to select the months in which you want the backup to occur or set the Frequency in number of months.

Fixed Day: The backup occurs on the specified date at the frequency specified (in months). For example, to set the backup to occur on the 15th day of every month, select every month (or set Frequency to 1) and Fixed Day to 15.

Relative Day: The backup occurs on the specified day of the month at the specified frequency (in months). For example, to set the backup to occur on the second Sunday of every third month, set Frequency to 3 (or select which months you want to the backup to occur in) and select 2nd and Sunday from the Relative day dropdown lists.